diff --git a/meson.build b/meson.build index a2ce8de52..d5c41be2c 100644 --- a/meson.build +++ b/meson.build @@ -51,6 +51,7 @@ wayland_protocols_req = '>= 1.32' # native backend version requirements libinput_req = '>= 1.19.0' gbm_req = '>= 21.3' +libdrm_req = '>= 2.4.95' # screen cast version requirements libpipewire_req = '>= 0.3.33' @@ -270,7 +271,7 @@ if have_native_backend endif if have_wayland or have_native_backend - libdrm_dep = dependency('libdrm') + libdrm_dep = dependency('libdrm', version: libdrm_req) endif have_egl_device = get_option('egl_device') diff --git a/src/backends/native/meta-kms-utils.c b/src/backends/native/meta-kms-utils.c index 9eeba912e..8f7d92a5f 100644 --- a/src/backends/native/meta-kms-utils.c +++ b/src/backends/native/meta-kms-utils.c @@ -23,11 +23,6 @@ #include #include -/* added in libdrm 2.4.95 */ -#ifndef DRM_FORMAT_INVALID -#define DRM_FORMAT_INVALID 0 -#endif - float meta_calculate_drm_mode_refresh_rate (const drmModeModeInfo *drm_mode) { diff --git a/src/backends/native/meta-renderer-native.c b/src/backends/native/meta-renderer-native.c index 87b442eab..78bde68ff 100644 --- a/src/backends/native/meta-renderer-native.c +++ b/src/backends/native/meta-renderer-native.c @@ -76,11 +76,6 @@ #define EGL_DRM_MASTER_FD_EXT 0x333C #endif -/* added in libdrm 2.4.95 */ -#ifndef DRM_FORMAT_INVALID -#define DRM_FORMAT_INVALID 0 -#endif - struct _MetaRendererNative { MetaRenderer parent;