[Mesa-dev] [PATCH 2/3] clover: Add all the mandatory 1.1 extensions to the extension string

Jan Vesely jan.vesely at rutgers.edu
Fri Mar 20 23:12:02 PDT 2015


On Sat, 2015-03-21 at 00:35 +0000, Tom Stellard wrote:
> ---
>  src/gallium/state_trackers/clover/api/device.cpp | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/src/gallium/state_trackers/clover/api/device.cpp b/src/gallium/state_trackers/clover/api/device.cpp
> index 04f293d..43e7475 100644
> --- a/src/gallium/state_trackers/clover/api/device.cpp
> +++ b/src/gallium/state_trackers/clover/api/device.cpp
> @@ -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:

Reviewed-by: Jan Vesely <jan.vesely at rutgers.edu>
-- 
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/20150321/926f4f44/attachment-0001.sig>


More information about the mesa-dev mailing list