clover: Add all the mandatory 1.1 extensions to the extension string
authorTom Stellard <thomas.stellard@amd.com>
Sat, 21 Mar 2015 00:25:34 +0000 (00:25 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 23 Mar 2015 13:22:42 +0000 (13:22 +0000)
Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/state_trackers/clover/api/device.cpp

index 04f293d592af8b37e31198db983838b3168b5746..43e7475f439095d4a31cd559b26666ad291cce9f 100644 (file)
@@ -301,7 +301,13 @@ clGetDeviceInfo(cl_device_id d_dev, cl_device_info param,
       break;
 
    case CL_DEVICE_EXTENSIONS:
-      buf.as_string() = dev.has_doubles() ? "cl_khr_fp64" : "";
+      buf.as_string() =
+         "cl_khr_global_int32_base_atomics"
+         " cl_khr_global_int32_extended_atomics"
+         " cl_khr_local_int32_base_atomics"
+         " cl_khr_local_int32_extended_atomics"
+         " cl_khr_byte_addressable_store"
+         + std::string(dev.has_doubles() ? " cl_khr_fp64" : "");
       break;
 
    case CL_DEVICE_PLATFORM: