meson: don't require glx/egl/gbm with gallium drivers
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 13 Dec 2018 03:54:03 +0000 (03:54 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 13 Dec 2018 03:54:03 +0000 (03:54 +0000)
The gallium drivers do not require a DRI loader. Drop the artificial
and unnecessary restriction.

Fixes: af9d276134d ("meson: build libmesa_gallium")
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
meson.build

index 5515f2605d553d5ea6279a3f68b6c31a3f5a40e6..9ecb8ea20ca0970252ecb306e387b4f76bbf7904 100644 (file)
@@ -381,9 +381,9 @@ endif
 if with_any_vk and (with_platform_x11 and not with_dri3)
   error('Vulkan drivers require dri3 for X11 support')
 endif
-if with_dri or with_gallium
-  if with_glx == 'disabled' and not with_egl and not with_platform_haiku
-    error('building dri or gallium drivers require at least one window system')
+if with_dri
+  if with_glx == 'disabled' and not with_egl and not with_gbm
+    error('building dri drivers require at least one windowing system')
   endif
 endif