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 <oschowa@web.de>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3346
Fixes: e00adef34a
("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>
This commit is contained in:
parent
c1476044b5
commit
a4181fcd42
|
@ -389,7 +389,7 @@ elif _xlib_lease == 'false'
|
||||||
warning('xlib_lease option "false" deprecated, please use "disabled" instead.')
|
warning('xlib_lease option "false" deprecated, please use "disabled" instead.')
|
||||||
endif
|
endif
|
||||||
if _xlib_lease == 'auto'
|
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
|
else
|
||||||
with_xlib_lease = _xlib_lease == 'enabled'
|
with_xlib_lease = _xlib_lease == 'enabled'
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue