From 5a6de45bd55eba358c8a983e44a146e4b437c623 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Wed, 21 Feb 2024 12:08:23 -0800 Subject: [PATCH] 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 Part-of: --- meson.build | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/meson.build b/meson.build index f2bb035910b..b75316376a7 100644 --- a/meson.build +++ b/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(