From: Alyssa Rosenzweig Date: Wed, 25 Oct 2023 12:46:30 +0000 (-0400) Subject: meson: Add gallium-drivers=all option X-Git-Tag: upstream/23.3.3~327 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a5bcd8b84ff5b25ec9825762a3355a8865dd519b;p=platform%2Fupstream%2Fmesa.git meson: Add gallium-drivers=all option Again, useful to lint common code changes and for our macbook-wielding rel manager <3 Omits i915g due to dependency hell, everything else builds on fedora asahi. Signed-off-by: Alyssa Rosenzweig Cc: mesa-stable Reviewed-by: Eric Engestrom Part-of: (cherry picked from commit ef4aa24a15a7a84b6deda058f710e5f4c52e3984) --- diff --git a/.pick_status.json b/.pick_status.json index cebeecf..fb68dca 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -1174,7 +1174,7 @@ "description": "meson: Add gallium-drivers=all option", "nominated": true, "nomination_type": 0, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": null, "notes": null diff --git a/meson.build b/meson.build index d1dc4e2..fbb0b29 100644 --- a/meson.build +++ b/meson.build @@ -155,7 +155,16 @@ if gallium_drivers.contains('auto') error('Unknown OS @0@. Please pass -Dgallium-drivers to set driver options. Patches gladly accepted to fix this.'.format( host_machine.system())) endif +elif gallium_drivers.contains('all') + # Build-test everything except for i915, which depends on libdrm-intel which + # is not available on non-Intel distros. + gallium_drivers = [ + 'r300', 'r600', 'radeonsi', 'crocus', 'v3d', 'vc4', 'freedreno', 'etnaviv', + 'nouveau', 'svga', 'tegra', 'virgl', 'lima', 'panfrost', 'swrast', 'iris', + 'zink', 'd3d12', 'asahi' + ] endif + with_gallium_radeonsi = gallium_drivers.contains('radeonsi') with_gallium_r300 = gallium_drivers.contains('r300') with_gallium_r600 = gallium_drivers.contains('r600') diff --git a/meson_options.txt b/meson_options.txt index a9f9ab1..e885ba6 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -73,7 +73,7 @@ option( choices : [ 'auto', 'kmsro', 'radeonsi', 'r300', 'r600', 'nouveau', 'freedreno', 'swrast', 'v3d', 'vc4', 'etnaviv', 'tegra', 'i915', 'svga', 'virgl', - 'panfrost', 'iris', 'lima', 'zink', 'd3d12', 'asahi', 'crocus' + 'panfrost', 'iris', 'lima', 'zink', 'd3d12', 'asahi', 'crocus', 'all', ], description : 'List of gallium drivers to build. If this is set to auto ' + 'all drivers applicable to the target OS/architecture ' +