Module: Mesa
Branch: main
Commit: b70e948886976d2fb17b3191c9116c1babe25810
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=b70e948886976d2fb17b3191c9116c1babe25810

Author: Alyssa Rosenzweig <[email protected]>
Date:   Wed Oct 25 08:41:55 2023 -0400

meson: Add vulkan-drivers=all option

To build-test everything, helpful to check common code changes before pounding
CI.

Signed-off-by: Alyssa Rosenzweig <[email protected]>
Cc: mesa-stable
Reviewed-by: Eric Engestrom <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25882>

---

 meson.build       | 6 ++++++
 meson_options.txt | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 755a9431b0c..2946a432f2c 100644
--- a/meson.build
+++ b/meson.build
@@ -213,6 +213,12 @@ if _vulkan_drivers.contains('auto')
     error('Unknown OS @0@. Please pass -Dvulkan-drivers to set driver options. 
Patches gladly accepted to fix this.'.format(
           host_machine.system()))
   endif
+elif _vulkan_drivers.contains('all')
+   # Build every vulkan driver regardless of architecture.
+   _vulkan_drivers = ['amd', 'intel', 'intel_hasvk', 'swrast',
+                      'freedreno', 'panfrost', 'virtio', 'broadcom',
+                      'imagination-experimental', 'microsoft-experimental',
+                      'nouveau-experimental']
 endif
 
 with_intel_vk = _vulkan_drivers.contains('intel')
diff --git a/meson_options.txt b/meson_options.txt
index 8130c3e9321..a9f9ab1658f 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -211,7 +211,7 @@ option(
   value : ['auto'],
   choices : ['auto', 'amd', 'broadcom', 'freedreno', 'intel', 'intel_hasvk',
              'panfrost', 'swrast', 'virtio', 'imagination-experimental',
-             'microsoft-experimental', 'nouveau-experimental'],
+             'microsoft-experimental', 'nouveau-experimental', 'all'],
   description : 'List of vulkan drivers to build. If this is set to auto ' +
                 'all drivers applicable to the target OS/architecture ' +
                 'will be built'

Reply via email to