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:
@@ -126,7 +126,7 @@ pub static DISPATCH: cl_icd_dispatch = cl_icd_dispatch {
|
|||||||
clEnqueueMigrateMemObjects: Some(cl_enqueue_migrate_mem_objects),
|
clEnqueueMigrateMemObjects: Some(cl_enqueue_migrate_mem_objects),
|
||||||
clEnqueueMarkerWithWaitList: Some(cl_enqueue_marker_with_wait_list),
|
clEnqueueMarkerWithWaitList: Some(cl_enqueue_marker_with_wait_list),
|
||||||
clEnqueueBarrierWithWaitList: Some(cl_enqueue_barrier_with_wait_list),
|
clEnqueueBarrierWithWaitList: Some(cl_enqueue_barrier_with_wait_list),
|
||||||
clGetExtensionFunctionAddressForPlatform: None,
|
clGetExtensionFunctionAddressForPlatform: Some(cl_get_extension_function_address_for_platform),
|
||||||
clCreateFromGLTexture: None,
|
clCreateFromGLTexture: None,
|
||||||
clGetDeviceIDsFromD3D11KHR: ptr::null_mut(),
|
clGetDeviceIDsFromD3D11KHR: ptr::null_mut(),
|
||||||
clCreateFromD3D11BufferKHR: 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(
|
extern "C" fn cl_create_command_queue_with_properties(
|
||||||
context: cl_context,
|
context: cl_context,
|
||||||
device: cl_device_id,
|
device: cl_device_id,
|
||||||
|
Reference in New Issue
Block a user