From 93484bf38ab08052f1240839720fcd7246328254 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Sun, 20 Apr 2025 13:52:33 +0200 Subject: [PATCH] rusticl: allow packagers to enable radeonsi by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Radeonsi hasn't yet passed conformance, so it's not part of the auto set at this point in time. But this will allow distribution to enable it if they feel comfortable enough, or to disable it again, if it causes too many problems. Acked-by: Marek Olšák Part-of: --- meson.options | 2 +- src/gallium/frontends/rusticl/mesa/pipe/device.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/meson.options b/meson.options index 3dcbcfd7116..48e5b810920 100644 --- a/meson.options +++ b/meson.options @@ -156,7 +156,7 @@ option( option( 'gallium-rusticl-enable-drivers', type : 'array', - value : ['auto', 'asahi'], + value : ['auto', 'asahi', 'radeonsi'], description : 'List of gallium drivers for which rusticl will be enabled ' + 'by default', ) diff --git a/src/gallium/frontends/rusticl/mesa/pipe/device.rs b/src/gallium/frontends/rusticl/mesa/pipe/device.rs index f5d1cb36435..7925d951aee 100644 --- a/src/gallium/frontends/rusticl/mesa/pipe/device.rs +++ b/src/gallium/frontends/rusticl/mesa/pipe/device.rs @@ -64,6 +64,8 @@ fn get_enabled_devs() -> HashMap { let default_devs: &[&str] = &[ #[cfg(any(rusticl_enable_asahi, rusticl_enable_auto))] "asahi", + #[cfg(any(rusticl_enable_radeonsi))] + "radeonsi", ]; // I wished we could use different iterators, but that's not really working out.