diff options
author | Pierre Moreau <dev@pmoreau.org> | 2020-11-12 21:31:24 +0100 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2020-12-18 01:18:00 +0000 |
commit | b47981304c06c0f845df2e8d842e0105c138aa9f (patch) | |
tree | f48f0b0012a92f456aa98ddfd200238b3b0809c2 | |
parent | 55e2d836f37f7073a5d2221e4a754ed30781abb9 (diff) |
clover/api: Add extended versioning query for built-in kernels
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.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/frontends/clover/api/device.cpp b/src/gallium/frontends/clover/api/device.cpp index d0b3b9e6d84..ca5a9f1c25b 100644 --- a/src/gallium/frontends/clover/api/device.cpp +++ b/src/gallium/frontends/clover/api/device.cpp @@ -430,11 +430,14 @@ clGetDeviceInfo(cl_device_id d_dev, cl_device_info param, break; case CL_DEVICE_ILS_WITH_VERSION: - case CL_DEVICE_BUILT_IN_KERNELS_WITH_VERSION: if (r_size) *r_size = 0; break; + case CL_DEVICE_BUILT_IN_KERNELS_WITH_VERSION: + buf.as_vector<cl_name_version>() = std::vector<cl_name_version>{}; + break; + case CL_DEVICE_MAX_READ_WRITE_IMAGE_ARGS: case CL_DEVICE_IMAGE_PITCH_ALIGNMENT: case CL_DEVICE_IMAGE_BASE_ADDRESS_ALIGNMENT: |