mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
rusticl: allow asahi to be enabled by default
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31589>
This commit is contained in:
parent
767695b2c4
commit
9cdf897c5e
2 changed files with 5 additions and 2 deletions
|
|
@ -163,7 +163,7 @@ option(
|
||||||
option(
|
option(
|
||||||
'gallium-rusticl-enable-drivers',
|
'gallium-rusticl-enable-drivers',
|
||||||
type : 'array',
|
type : 'array',
|
||||||
value : ['auto'],
|
value : ['auto', 'asahi'],
|
||||||
description : 'List of gallium drivers for which rusticl will be enabled ' +
|
description : 'List of gallium drivers for which rusticl will be enabled ' +
|
||||||
'by default',
|
'by default',
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,10 @@ fn get_enabled_devs() -> HashMap<String, u32> {
|
||||||
let mut res = HashMap::new();
|
let mut res = HashMap::new();
|
||||||
|
|
||||||
// we require the type here as this list can be empty depending on the build options
|
// we require the type here as this list can be empty depending on the build options
|
||||||
let default_devs: &[&str] = &[];
|
let default_devs: &[&str] = &[
|
||||||
|
#[cfg(any(rusticl_enable_asahi, rusticl_enable_auto))]
|
||||||
|
"asahi",
|
||||||
|
];
|
||||||
|
|
||||||
// I wished we could use different iterators, but that's not really working out.
|
// I wished we could use different iterators, but that's not really working out.
|
||||||
let enabled_devs = env::var("RUSTICL_ENABLE").unwrap_or(default_devs.join(","));
|
let enabled_devs = env::var("RUSTICL_ENABLE").unwrap_or(default_devs.join(","));
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue