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 <git@karolherbst.de>
Reviewed-by: Nora Allen <blackcatgames@protonmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23707>
This commit is contained in:
Karol Herbst
2023-06-17 21:44:30 +02:00
committed by Marge Bot
parent f969e9a137
commit a9ddee677b
2 changed files with 4 additions and 0 deletions

View File

@@ -204,6 +204,9 @@ impl CLInfo<cl_device_info> for cl_device_id {
CL_DEVICE_NUMERIC_VERSION => cl_prop::<cl_version>(dev.cl_version.into()),
CL_DEVICE_OPENCL_C_ALL_VERSIONS => cl_prop::<&Vec<cl_name_version>>(&dev.clc_versions),
CL_DEVICE_OPENCL_C_FEATURES => cl_prop::<&Vec<cl_name_version>>(&dev.clc_features),
CL_DEVICE_OPENCL_C_NUMERIC_VERSION_KHR => {
cl_prop::<cl_version_khr>(dev.clc_version.into())
}
CL_DEVICE_OPENCL_C_VERSION => {
cl_prop::<&str>(&format!("OpenCL C {} ", dev.clc_version.api_str()))
}

View File

@@ -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"),
]);