meson: Set with_dri from with_gallium when DRI glx is explicitly configured
authorJon Turney <jon.turney@dronecode.org.uk>
Mon, 15 Jan 2018 19:39:46 +0000 (19:39 +0000)
committerJon Turney <jon.turney@dronecode.org.uk>
Thu, 5 Jul 2018 16:48:35 +0000 (17:48 +0100)
Set with_dri from with_gallium when DRI GLX is explicitly configured, as
well as when DRI GLX is chosen automatically.

Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
meson.build

index b2722c71e5bd1d1fb02763249a87d20e07c6e895..7d12af3d5108f60594dd9ace5c61faf15aea8160 100644 (file)
@@ -263,7 +263,6 @@ if with_glx == 'auto'
   elif with_gallium
     # Even when building just gallium drivers the user probably wants dri
     with_glx = 'dri'
-    with_dri = true
   elif with_platform_x11 and with_any_opengl and not with_any_vk
     # The automatic behavior should not be to turn on xlib based glx when
     # building only vulkan drivers
@@ -272,6 +271,11 @@ if with_glx == 'auto'
     with_glx = 'disabled'
   endif
 endif
+if with_glx == 'dri'
+   if with_gallium
+      with_dri = true
+   endif
+endif
 
 if not (with_dri or with_gallium or with_glx == 'xlib' or with_glx == 'gallium-xlib')
   with_gles1 = false