meson: Enable zink in gallium_drivers by default
Zink is the only way to use hw accelerated GL on a7xx and the preferred way for hw supporting NVK. Start building Zink by default everywhere that we would build swrast by default, except for Mac + Cygwin + Haiku. Signed-off-by: Joshua Ashton <joshua@froggi.es> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27737>
This commit is contained in:
13
meson.build
13
meson.build
@@ -137,26 +137,29 @@ if gallium_drivers.contains('auto')
|
||||
if ['x86', 'x86_64'].contains(host_machine.cpu_family())
|
||||
gallium_drivers = [
|
||||
'r300', 'r600', 'radeonsi', 'nouveau', 'virgl', 'svga', 'swrast',
|
||||
'iris', 'crocus', 'i915'
|
||||
'iris', 'crocus', 'i915', 'zink'
|
||||
]
|
||||
elif ['arm', 'aarch64'].contains(host_machine.cpu_family())
|
||||
gallium_drivers = [
|
||||
'v3d', 'vc4', 'freedreno', 'etnaviv', 'nouveau', 'svga',
|
||||
'tegra', 'virgl', 'lima', 'panfrost', 'swrast', 'iris'
|
||||
'tegra', 'virgl', 'lima', 'panfrost', 'swrast', 'iris',
|
||||
'zink'
|
||||
]
|
||||
elif ['mips', 'mips64', 'riscv32', 'riscv64'].contains(host_machine.cpu_family())
|
||||
gallium_drivers = [
|
||||
'r300', 'r600', 'radeonsi', 'nouveau', 'virgl', 'swrast'
|
||||
'r300', 'r600', 'radeonsi', 'nouveau', 'virgl', 'swrast', 'zink'
|
||||
]
|
||||
elif ['loongarch64'].contains(host_machine.cpu_family())
|
||||
gallium_drivers = [
|
||||
'r300', 'r600', 'radeonsi', 'nouveau', 'virgl', 'etnaviv', 'swrast'
|
||||
'r300', 'r600', 'radeonsi', 'nouveau', 'virgl', 'etnaviv', 'swrast', 'zink'
|
||||
]
|
||||
else
|
||||
error('Unknown architecture @0@. Please pass -Dgallium-drivers to set driver options. Patches gladly accepted to fix this.'.format(
|
||||
host_machine.cpu_family()))
|
||||
endif
|
||||
elif ['darwin', 'windows', 'cygwin', 'haiku'].contains(host_machine.system())
|
||||
elif ['windows'].contains(host_machine.system())
|
||||
gallium_drivers = ['swrast', 'zink']
|
||||
elif ['darwin', 'cygwin', 'haiku'].contains(host_machine.system())
|
||||
gallium_drivers = ['swrast']
|
||||
else
|
||||
error('Unknown OS @0@. Please pass -Dgallium-drivers to set driver options. Patches gladly accepted to fix this.'.format(
|
||||
|
||||
Reference in New Issue
Block a user