rusticl: support SPIR-V 1.5 and 1.6

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33327>
This commit is contained in:
Karol Herbst 2025-01-31 01:44:36 +01:00 committed by Marge Bot
parent 2f4931353f
commit bb6d371c0e

View file

@ -16,13 +16,16 @@ use std::ffi::CStr;
use std::mem::size_of; use std::mem::size_of;
use std::ptr; use std::ptr;
const SPIRV_SUPPORT_STRING: &CStr = c"SPIR-V_1.0 SPIR-V_1.1 SPIR-V_1.2 SPIR-V_1.3 SPIR-V_1.4"; const SPIRV_SUPPORT_STRING: &CStr =
const SPIRV_SUPPORT: [cl_name_version; 5] = [ c"SPIR-V_1.0 SPIR-V_1.1 SPIR-V_1.2 SPIR-V_1.3 SPIR-V_1.4 SPIR-V_1.5 SPIR-V_1.6";
const SPIRV_SUPPORT: [cl_name_version; 7] = [
mk_cl_version_ext(1, 0, 0, "SPIR-V"), mk_cl_version_ext(1, 0, 0, "SPIR-V"),
mk_cl_version_ext(1, 1, 0, "SPIR-V"), mk_cl_version_ext(1, 1, 0, "SPIR-V"),
mk_cl_version_ext(1, 2, 0, "SPIR-V"), mk_cl_version_ext(1, 2, 0, "SPIR-V"),
mk_cl_version_ext(1, 3, 0, "SPIR-V"), mk_cl_version_ext(1, 3, 0, "SPIR-V"),
mk_cl_version_ext(1, 4, 0, "SPIR-V"), mk_cl_version_ext(1, 4, 0, "SPIR-V"),
mk_cl_version_ext(1, 5, 0, "SPIR-V"),
mk_cl_version_ext(1, 6, 0, "SPIR-V"),
]; ];
type ClDevIdpAccelProps = cl_device_integer_dot_product_acceleration_properties_khr; type ClDevIdpAccelProps = cl_device_integer_dot_product_acceleration_properties_khr;