meson: fix `-D xlib-lease=auto` detection
authorEric Engestrom <eric@engestrom.ch>
Sat, 1 Aug 2020 11:41:30 +0000 (13:41 +0200)
committerMarge Bot <eric+marge@anholt.net>
Sun, 2 Aug 2020 16:23:47 +0000 (16:23 +0000)
This is used by Vulkan, not EGL, and depends on having DRM/KMS, not GBM.

Reported-by: Oschowa <oschowa@web.de>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3346
Fixes: e00adef34a5ce485e2c9 ("egl: automatically compile the `drm` platform when available")
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6150>

meson.build

index 011b1eca83215b2e7f69e986f20c178f5c6e8d3d..4b57cf326ec4ec811125bd90a4d1e4acea071e84 100644 (file)
@@ -389,7 +389,7 @@ elif _xlib_lease == 'false'
   warning('xlib_lease option "false" deprecated, please use "disabled" instead.')
 endif
 if _xlib_lease == 'auto'
-  with_xlib_lease = with_platform_x11 and with_gbm
+  with_xlib_lease = with_platform_x11 and system_has_kms_drm
 else
   with_xlib_lease = _xlib_lease == 'enabled'
 endif