diff options
Diffstat (limited to 'src/gallium/frontends/rusticl/api/platform.rs')
-rw-r--r-- | src/gallium/frontends/rusticl/api/platform.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/frontends/rusticl/api/platform.rs b/src/gallium/frontends/rusticl/api/platform.rs index 7641ff33279..dcefdf6cf56 100644 --- a/src/gallium/frontends/rusticl/api/platform.rs +++ b/src/gallium/frontends/rusticl/api/platform.rs @@ -8,12 +8,12 @@ use rusticl_opencl_gen::*; impl CLInfo<cl_platform_info> for cl_platform_id { fn query(&self, q: cl_platform_info, _: &[u8]) -> CLResult<Vec<u8>> { - let p = self.get_ref()?; + self.get_ref()?; Ok(match q { // TODO spirv CL_PLATFORM_EXTENSIONS => cl_prop("cl_khr_icd cl_khr_il_program"), CL_PLATFORM_EXTENSIONS_WITH_VERSION => { - cl_prop::<Vec<cl_name_version>>(p.extensions.to_vec()) + cl_prop::<Vec<cl_name_version>>(PLATFORM_EXTENSIONS.to_vec()) } CL_PLATFORM_HOST_TIMER_RESOLUTION => cl_prop::<cl_ulong>(0), CL_PLATFORM_ICD_SUFFIX_KHR => cl_prop("MESA"), |