From feb0689839f5e981259f494e0fc66b24ba72322b Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Mon, 14 Mar 2022 20:18:37 +0100 Subject: [PATCH] rusticl: hack for CL 3.0 Signed-off-by: Karol Herbst Acked-by: Alyssa Rosenzweig Part-of: --- src/gallium/frontends/rusticl/api/icd.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/gallium/frontends/rusticl/api/icd.rs b/src/gallium/frontends/rusticl/api/icd.rs index ea3f7e40c60..58a481ed2bb 100644 --- a/src/gallium/frontends/rusticl/api/icd.rs +++ b/src/gallium/frontends/rusticl/api/icd.rs @@ -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,