summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Moreau <dev@pmoreau.org>2020-11-12 21:37:21 +0100
committerMarge Bot <eric+marge@anholt.net>2020-12-18 01:18:00 +0000
commit7192362531fe24b44f1bcd87b40dfe37b7a989c2 (patch)
tree968a2f9a83926009bb52b37ce89a057fd668d0d5
parentb47981304c06c0f845df2e8d842e0105c138aa9f (diff)
clover/api: Add extended versioning query for OpenCL C
The cl_khr_extended_versioning extension differs from the OpenCL 3.0 version on this specific as it only reports a single supported OpenCL C version, whereas the OpenCL 3.0 equivalent will report all of them. Reviewed-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Francisco Jerez <currojerez@riseup.net> Signed-off-by: Pierre Moreau <dev@pmoreau.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7590>
-rw-r--r--src/gallium/frontends/clover/api/device.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/frontends/clover/api/device.cpp b/src/gallium/frontends/clover/api/device.cpp
index ca5a9f1c25b..80101359368 100644
--- a/src/gallium/frontends/clover/api/device.cpp
+++ b/src/gallium/frontends/clover/api/device.cpp
@@ -413,6 +413,10 @@ clGetDeviceInfo(cl_device_id d_dev, cl_device_info param,
buf.as_scalar<cl_version>() = dev.device_version();
break;
+ case CL_DEVICE_OPENCL_C_NUMERIC_VERSION_KHR:
+ buf.as_scalar<cl_version>() = dev.device_clc_version();
+ break;
+
case CL_DEVICE_OPENCL_C_ALL_VERSIONS:
buf.as_vector<cl_name_version>() = dev.opencl_c_all_versions();
break;