diff options
author | Karol Herbst <git@karolherbst.de> | 2023-05-15 15:51:36 +0200 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-05-16 21:07:08 +0000 |
commit | 2041c36e70d061a1efd1f9f297d6b83bc7068c77 (patch) | |
tree | f78cf20f4fc520ee370daf99c5879fac867f3fd8 | |
parent | 7e65cff93190105422cb2472dcf74904d76dd6f7 (diff) | |
download | mesa-2041c36e70d061a1efd1f9f297d6b83bc7068c77.tar.gz |
rusticl/platform: advertise byte_addressable_store
From the list of extensions we support on all devices it's the only one we
rely on for all devices.
There might be some devices not supporting atomics so keep them out there
for now.
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/23031>
-rw-r--r-- | src/gallium/frontends/rusticl/core/device.rs | 3 | ||||
-rw-r--r-- | src/gallium/frontends/rusticl/core/platform.rs | 5 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/frontends/rusticl/core/device.rs b/src/gallium/frontends/rusticl/core/device.rs index 0bff8a19a83..b2224880567 100644 --- a/src/gallium/frontends/rusticl/core/device.rs +++ b/src/gallium/frontends/rusticl/core/device.rs @@ -485,8 +485,7 @@ impl Device { } }; - // add extensions all drivers support - add_ext(1, 0, 0, "cl_khr_byte_addressable_store", ""); + // add extensions all drivers support for now add_ext(1, 0, 0, "cl_khr_global_int32_base_atomics", ""); add_ext(1, 0, 0, "cl_khr_global_int32_extended_atomics", ""); add_ext(1, 0, 0, "cl_khr_local_int32_base_atomics", ""); diff --git a/src/gallium/frontends/rusticl/core/platform.rs b/src/gallium/frontends/rusticl/core/platform.rs index 152197e9334..666c475a9bf 100644 --- a/src/gallium/frontends/rusticl/core/platform.rs +++ b/src/gallium/frontends/rusticl/core/platform.rs @@ -26,11 +26,12 @@ pub struct PlatformFeatures { static PLATFORM_ENV_ONCE: Once = Once::new(); static PLATFORM_ONCE: Once = Once::new(); -pub static PLATFORM_EXTENSIONS: [cl_name_version; 2] = [ +pub static PLATFORM_EXTENSIONS: [cl_name_version; 3] = [ + mk_cl_version_ext(1, 0, 0, "cl_khr_byte_addressable_store"), mk_cl_version_ext(1, 0, 0, "cl_khr_icd"), mk_cl_version_ext(1, 0, 0, "cl_khr_il_program"), ]; -pub static PLATFORM_EXTENSION_STR: &str = "cl_khr_icd cl_khr_il_program"; +pub static PLATFORM_EXTENSION_STR: &str = "cl_khr_byte_addressable_store cl_khr_icd cl_khr_il_program"; static mut PLATFORM: Platform = Platform { dispatch: &DISPATCH, |