mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
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:
parent
ebfffa1dae
commit
feb0689839
1 changed files with 11 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue