From 67abda9fd5a39bdd38ab936816d2000825af07b8 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Wed, 20 Nov 2024 15:29:06 +0100 Subject: [PATCH] rusticl/platform: pass the slice directly for CL_PLATFORM_EXTENSIONS_WITH_VERSION Reviewed-by: @LingMan Part-of: --- src/gallium/frontends/rusticl/api/platform.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/frontends/rusticl/api/platform.rs b/src/gallium/frontends/rusticl/api/platform.rs index be8592d1871..0ddf2538aba 100644 --- a/src/gallium/frontends/rusticl/api/platform.rs +++ b/src/gallium/frontends/rusticl/api/platform.rs @@ -17,7 +17,7 @@ unsafe impl CLInfo for cl_platform_id { match q { CL_PLATFORM_EXTENSIONS => v.write::<&str>(PLATFORM_EXTENSION_STR), CL_PLATFORM_EXTENSIONS_WITH_VERSION => { - v.write::>(PLATFORM_EXTENSIONS.to_vec()) + v.write::<&[cl_name_version]>(&PLATFORM_EXTENSIONS) } CL_PLATFORM_HOST_TIMER_RESOLUTION => v.write::(1), CL_PLATFORM_ICD_SUFFIX_KHR => v.write::<&CStr>(c"MESA"),