Module: Mesa Branch: main Commit: 3916ee05b0a63cc77e9a7906bd003e2b88ad7284 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3916ee05b0a63cc77e9a7906bd003e2b88ad7284
Author: Karol Herbst <[email protected]> Date: Sat Jun 17 09:06:08 2023 +0200 rusticl/api: workaround DPCPP fetching clSetProgramSpecializationConstant Nobody has to advertize it as an extension, but here we are. Signed-off-by: Karol Herbst <[email protected]> Reviewed-by: Jesse Natalie <[email protected]> Reviewed-by: Faith Ekstrand <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25701> --- src/gallium/frontends/rusticl/api/icd.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gallium/frontends/rusticl/api/icd.rs b/src/gallium/frontends/rusticl/api/icd.rs index bd033e5abb9..c5f0107aa27 100644 --- a/src/gallium/frontends/rusticl/api/icd.rs +++ b/src/gallium/frontends/rusticl/api/icd.rs @@ -435,6 +435,12 @@ extern "C" fn cl_get_extension_function_address( "clSetKernelExecInfoARM" => cl_set_kernel_exec_info as *mut ::std::ffi::c_void, "clSVMAllocARM" => cl_svm_alloc as *mut ::std::ffi::c_void, "clSVMFreeARM" => cl_svm_free as *mut ::std::ffi::c_void, + + // DPCPP bug https://github.com/intel/llvm/issues/9964 + "clSetProgramSpecializationConstant" => { + cl_set_program_specialization_constant as *mut ::std::ffi::c_void + } + _ => ptr::null_mut(), } }
