[Mesa-dev] [PATCH] clover: Return the minimum required value for CL_DEVICE_SINGLE_FP_CONFIG
Jan Vesely
jan.vesely at rutgers.edu
Thu Mar 5 10:16:44 PST 2015
On Thu, 2015-03-05 at 14:34 +0000, Tom Stellard wrote:
> This means dropping CL_FP_DENORM from the current return value.
> ---
> src/gallium/state_trackers/clover/api/device.cpp | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/src/gallium/state_trackers/clover/api/device.cpp b/src/gallium/state_trackers/clover/api/device.cpp
> index b1f556f..db3b931 100644
> --- a/src/gallium/state_trackers/clover/api/device.cpp
> +++ b/src/gallium/state_trackers/clover/api/device.cpp
> @@ -201,8 +201,10 @@ clGetDeviceInfo(cl_device_id d_dev, cl_device_info param,
> break;
>
> case CL_DEVICE_SINGLE_FP_CONFIG:
> + // This is the "mandated minimum single precision floating-point
> + // capability"
OCL 1.2 adds: "for devices that are not of type CL_DEVICE_TYPE_CUSTOM"
Reviewed-by: Jan Vesely <jan.vesely at rutgers.edu>
> buf.as_scalar<cl_device_fp_config>() =
> - CL_FP_DENORM | CL_FP_INF_NAN | CL_FP_ROUND_TO_NEAREST;
> + CL_FP_INF_NAN | CL_FP_ROUND_TO_NEAREST;
> break;
>
> case CL_DEVICE_DOUBLE_FP_CONFIG:
--
Jan Vesely <jan.vesely at rutgers.edu>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150305/d70deda2/attachment-0001.sig>
More information about the mesa-dev
mailing list