meson.build: Lower libdrm version requirement

The version requrement was increased twice for Xwayland:
5a742ab876
588464332d

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 <stefan11111@shitposting.expert>
This commit is contained in:
stefan11111
2026-04-04 04:20:26 +03:00
committed by Enrico Weigelt
parent 91e09f8865
commit 569787fcb4
2 changed files with 5 additions and 1 deletions

View File

@@ -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);

View File

@@ -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'