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:
@@ -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()))
|
||||
}
|
||||
|
@@ -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"),
|
||||
]);
|
||||
|
Reference in New Issue
Block a user