From: Eric Engestrom Date: Sat, 1 Aug 2020 11:41:30 +0000 (+0200) Subject: meson: fix `-D xlib-lease=auto` detection X-Git-Url: https://git.libre-soc.org/?p=mesa.git;a=commitdiff_plain;h=a4181fcd422ddd2a58467eda338847db7c14efd1 meson: fix `-D xlib-lease=auto` detection This is used by Vulkan, not EGL, and depends on having DRM/KMS, not GBM. Reported-by: Oschowa Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3346 Fixes: e00adef34a5ce485e2c9 ("egl: automatically compile the `drm` platform when available") Signed-off-by: Eric Engestrom Reviewed-by: Bas Nieuwenhuizen Part-of: --- diff --git a/meson.build b/meson.build index 011b1eca832..4b57cf326ec 100644 --- a/meson.build +++ b/meson.build @@ -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