summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/clover/api
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2015-03-05 14:30:57 +0000
committerTom Stellard <[email protected]>2015-03-09 13:53:33 +0000
commita646b00cfc42fecdf4f853a6fe3ddf12d7801881 (patch)
tree5e01cecf9a944535fcffcdfc8aa7bc0184666989 /src/gallium/state_trackers/clover/api
parentcb3eb43ad690a7355429ba8dcd40120646c55b9c (diff)
clover: Return the minimum required value for CL_DEVICE_SINGLE_FP_CONFIG v2
This means dropping CL_FP_DENORM from the current return value. v2: - Add comments about minimum values for OpenCL 1.2. Reviewed-by: Francisco Jerez <[email protected]> Reviewed-by: Jan Vesely <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/clover/api')
-rw-r--r--src/gallium/state_trackers/clover/api/device.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/clover/api/device.cpp b/src/gallium/state_trackers/clover/api/device.cpp
index b1f556fac56..5d1f4ab4c9d 100644
--- a/src/gallium/state_trackers/clover/api/device.cpp
+++ b/src/gallium/state_trackers/clover/api/device.cpp
@@ -201,8 +201,11 @@ 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" for OpenCL 1.1. In OpenCL 1.2, nothing is required for
+ // custom devices.
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: