From 569787fcb484f1bf3a5a5314030b758cb4782158 Mon Sep 17 00:00:00 2001 From: stefan11111 Date: Sat, 4 Apr 2026 04:20:26 +0300 Subject: [PATCH] meson.build: Lower libdrm version requirement The version requrement was increased twice for Xwayland: https://gitlab.freedesktop.org/xorg/xserver/-/commit/5a742ab8763d7b041c427f1d725f6bbd7ae82fa1 https://gitlab.freedesktop.org/xorg/xserver/-/commit/588464332d27ee1aca3fc3b16007310f8b1c036b If we eventually add explicit sync support, we can increase the requirement again, or add `ifdef`'s so we allow build with older libdrm Signed-off-by: stefan11111 --- hw/xfree86/drivers/video/modesetting/present.c | 4 ++++ meson.build | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/hw/xfree86/drivers/video/modesetting/present.c b/hw/xfree86/drivers/video/modesetting/present.c index c531bc814..bc088103b 100644 --- a/hw/xfree86/drivers/video/modesetting/present.c +++ b/hw/xfree86/drivers/video/modesetting/present.c @@ -535,6 +535,10 @@ ms_present_screen_init(ScreenPtr screen) uint64_t value; int ret; +#ifndef DRM_CAP_ATOMIC_ASYNC_PAGE_FLIP +#define DRM_CAP_ATOMIC_ASYNC_PAGE_FLIP 0x15 +#endif + ret = drmGetCap(ms->fd, ms->atomic_modeset ? DRM_CAP_ATOMIC_ASYNC_PAGE_FLIP : DRM_CAP_ASYNC_PAGE_FLIP, &value); diff --git a/meson.build b/meson.build index 57f9b316f..39aefe176 100644 --- a/meson.build +++ b/meson.build @@ -83,7 +83,7 @@ endforeach add_project_arguments(common_wflags, language : ['c', 'objc']) -libdrm_req = '>= 2.4.116' +libdrm_req = '>= 2.4.89' libselinux_req = '>= 2.0.86' xext_req = '>= 1.0.99.4' xproto_req = '>= 7.0.31'