From e5526bbac05caa8c12bf322a680c4de28a42daa3 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Mon, 2 Mar 2026 02:03:42 +0100 Subject: [PATCH] rusticl: start implementing CL 3.1 support Reviewed-by: Adam Jackson Part-of: --- src/gallium/frontends/rusticl/core/version.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/frontends/rusticl/core/version.rs b/src/gallium/frontends/rusticl/core/version.rs index cc078125f49..c2554529bc6 100644 --- a/src/gallium/frontends/rusticl/core/version.rs +++ b/src/gallium/frontends/rusticl/core/version.rs @@ -13,6 +13,7 @@ pub const CL2_0_VER: cl_version = mk_cl_version(2, 0, 0); pub const CL2_1_VER: cl_version = mk_cl_version(2, 1, 0); pub const CL2_2_VER: cl_version = mk_cl_version(2, 2, 0); pub const CL3_0_VER: cl_version = mk_cl_version(3, 0, 0); +pub const CL3_1_VER: cl_version = mk_cl_version(3, 1, 0); #[repr(u32)] #[derive(Copy, Clone, Eq, Hash, PartialEq, PartialOrd, Ord)] @@ -24,6 +25,7 @@ pub enum CLVersion { Cl2_1 = CL2_1_VER, Cl2_2 = CL2_2_VER, Cl3_0 = CL3_0_VER, + Cl3_1 = CL3_1_VER, } pub const fn mk_cl_version_ext(major: u32, minor: u32, patch: u32, ext: &str) -> cl_name_version { @@ -58,6 +60,7 @@ impl CLVersion { CLVersion::Cl2_1 => "2.1", CLVersion::Cl2_2 => "2.2", CLVersion::Cl3_0 => "3.0", + CLVersion::Cl3_1 => "3.1", } } @@ -70,6 +73,7 @@ impl CLVersion { CLVersion::Cl2_1 => "210", CLVersion::Cl2_2 => "220", CLVersion::Cl3_0 => "300", + CLVersion::Cl3_1 => "310", } } }