rusticl/icd: implement clGetExtensionFunctionAddressForPlatform

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-05-06 13:10:56 +02:00
committed by Marge Bot
parent cad2b6c4bc
commit 8f957fe355

View File

@@ -126,7 +126,7 @@ pub static DISPATCH: cl_icd_dispatch = cl_icd_dispatch {
clEnqueueMigrateMemObjects: Some(cl_enqueue_migrate_mem_objects),
clEnqueueMarkerWithWaitList: Some(cl_enqueue_marker_with_wait_list),
clEnqueueBarrierWithWaitList: Some(cl_enqueue_barrier_with_wait_list),
clGetExtensionFunctionAddressForPlatform: None,
clGetExtensionFunctionAddressForPlatform: Some(cl_get_extension_function_address_for_platform),
clCreateFromGLTexture: None,
clGetDeviceIDsFromD3D11KHR: ptr::null_mut(),
clCreateFromD3D11BufferKHR: ptr::null_mut(),
@@ -1589,6 +1589,13 @@ extern "C" fn cl_enqueue_barrier_with_wait_list(
))
}
extern "C" fn cl_get_extension_function_address_for_platform(
_platform: cl_platform_id,
function_name: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_void {
cl_get_extension_function_address(function_name)
}
extern "C" fn cl_create_command_queue_with_properties(
context: cl_context,
device: cl_device_id,