summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/clover/api
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2014-07-23 20:37:08 -0400
committerTom Stellard <[email protected]>2014-07-25 12:49:45 -0400
commit0ec858764204bf502535b799210db674de7c9e8a (patch)
tree827999fd84f1da1ac6321857251efd31d1d9e52b /src/gallium/state_trackers/clover/api
parent1607a8efc13aace755fe46eba8eb755cd93ea4e4 (diff)
clover: Query the device to see if images are supported
Reviewed-by: Francisco Jerez <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/clover/api')
-rw-r--r--src/gallium/state_trackers/clover/api/device.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/clover/api/device.cpp b/src/gallium/state_trackers/clover/api/device.cpp
index 97b2cf9c996..e8254684258 100644
--- a/src/gallium/state_trackers/clover/api/device.cpp
+++ b/src/gallium/state_trackers/clover/api/device.cpp
@@ -184,7 +184,7 @@ clGetDeviceInfo(cl_device_id d_dev, cl_device_info param,
break;
case CL_DEVICE_IMAGE_SUPPORT:
- buf.as_scalar<cl_bool>() = CL_TRUE;
+ buf.as_scalar<cl_bool>() = dev.image_support();
break;
case CL_DEVICE_MAX_PARAMETER_SIZE: