rusticl: hack for CL 3.0

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15439>
This commit is contained in:
Karol Herbst 2022-03-14 20:18:37 +01:00 committed by Marge Bot
parent ebfffa1dae
commit feb0689839

View file

@ -145,7 +145,7 @@ pub static DISPATCH: cl_icd_dispatch = cl_icd_dispatch {
clEnqueueAcquireEGLObjectsKHR: None,
clEnqueueReleaseEGLObjectsKHR: None,
clCreateEventFromEGLSyncKHR: None,
clCreateCommandQueueWithProperties: None,
clCreateCommandQueueWithProperties: Some(cl_create_command_queue_with_properties),
clCreatePipe: None,
clGetPipeInfo: None,
clSVMAlloc: None,
@ -1356,6 +1356,16 @@ extern "C" fn cl_enqueue_fill_image(
CL_OUT_OF_HOST_MEMORY
}
extern "C" fn cl_create_command_queue_with_properties(
context: cl_context,
device: cl_device_id,
_arg3: *const cl_queue_properties,
errcode_ret: *mut cl_int,
) -> cl_command_queue {
// TODO use own impl, this is enough to run the CL 3.0 CTS
match_obj!(create_command_queue(context, device, 0), errcode_ret)
}
// cl_khr_icd
extern "C" fn cl_icd_get_platform_ids_khr(
num_entries: cl_uint,