From a9ddee677b4b8f2a2d005896aea3716d88ecf607 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Sat, 17 Jun 2023 21:44:30 +0200 Subject: [PATCH] rusticl: advertize cl_khr_extended_versioning We already implemented the OpenCL 3.0 core bits, but the extension also has a `CL_DEVICE_OPENCL_C_NUMERIC_VERSION_KHR` query. Signed-off-by: Karol Herbst Reviewed-by: Nora Allen Part-of: --- src/gallium/frontends/rusticl/api/device.rs | 3 +++ src/gallium/frontends/rusticl/core/platform.rs | 1 + 2 files changed, 4 insertions(+) diff --git a/src/gallium/frontends/rusticl/api/device.rs b/src/gallium/frontends/rusticl/api/device.rs index b24717f..cf4541c 100644 --- a/src/gallium/frontends/rusticl/api/device.rs +++ b/src/gallium/frontends/rusticl/api/device.rs @@ -204,6 +204,9 @@ impl CLInfo for cl_device_id { CL_DEVICE_NUMERIC_VERSION => cl_prop::(dev.cl_version.into()), CL_DEVICE_OPENCL_C_ALL_VERSIONS => cl_prop::<&Vec>(&dev.clc_versions), CL_DEVICE_OPENCL_C_FEATURES => cl_prop::<&Vec>(&dev.clc_features), + CL_DEVICE_OPENCL_C_NUMERIC_VERSION_KHR => { + cl_prop::(dev.clc_version.into()) + } CL_DEVICE_OPENCL_C_VERSION => { cl_prop::<&str>(&format!("OpenCL C {} ", dev.clc_version.api_str())) } diff --git a/src/gallium/frontends/rusticl/core/platform.rs b/src/gallium/frontends/rusticl/core/platform.rs index 994dc4d..2e9a309 100644 --- a/src/gallium/frontends/rusticl/core/platform.rs +++ b/src/gallium/frontends/rusticl/core/platform.rs @@ -44,6 +44,7 @@ macro_rules! gen_cl_exts { gen_cl_exts!([ (1, 0, 0, "cl_khr_byte_addressable_store"), (1, 0, 0, "cl_khr_create_command_queue"), + (1, 0, 0, "cl_khr_extended_versioning"), (1, 0, 0, "cl_khr_icd"), (1, 0, 0, "cl_khr_il_program"), ]); -- 2.7.4