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>
This commit is contained in:
Pierre Moreau 2020-11-12 21:31:24 +01:00 committed by Marge Bot
parent 55e2d836f3
commit b47981304c
1 changed files with 4 additions and 1 deletions

View File

@ -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: