diff --git a/clients/simple-dmabuf-egl.c b/clients/simple-dmabuf-egl.c index 10e72a9bc..6d34942ae 100644 --- a/clients/simple-dmabuf-egl.c +++ b/clients/simple-dmabuf-egl.c @@ -60,10 +60,6 @@ #include "shared/weston-egl-ext.h" -#ifndef DRM_FORMAT_MOD_INVALID -#define DRM_FORMAT_MOD_INVALID ((1ULL << 56) - 1) -#endif - /* Possible options that affect the displayed image */ #define OPT_IMMEDIATE (1 << 0) /* create wl_buffer immediately */ #define OPT_IMPLICIT_SYNC (1 << 1) /* force implicit sync */ diff --git a/libweston/backend-drm/kms.c b/libweston/backend-drm/kms.c index f28950697..64f23d861 100644 --- a/libweston/backend-drm/kms.c +++ b/libweston/backend-drm/kms.c @@ -42,10 +42,6 @@ #include "pixel-formats.h" #include "presentation-time-server-protocol.h" -#ifndef DRM_FORMAT_MOD_LINEAR -#define DRM_FORMAT_MOD_LINEAR 0 -#endif - struct drm_property_enum_info plane_type_enums[] = { [WDRM_PLANE_TYPE_PRIMARY] = { .name = "Primary", diff --git a/libweston/linux-dmabuf.c b/libweston/linux-dmabuf.c index 796e98266..fb41897b4 100644 --- a/libweston/linux-dmabuf.c +++ b/libweston/linux-dmabuf.c @@ -30,6 +30,8 @@ #include #include +#include + #include #include "linux-dmabuf.h" #include "linux-dmabuf-unstable-v1-server-protocol.h" diff --git a/libweston/linux-dmabuf.h b/libweston/linux-dmabuf.h index 926dd9e0b..b89f03f16 100644 --- a/libweston/linux-dmabuf.h +++ b/libweston/linux-dmabuf.h @@ -29,12 +29,6 @@ #include #define MAX_DMABUF_PLANES 4 -#ifndef DRM_FORMAT_MOD_INVALID -#define DRM_FORMAT_MOD_INVALID ((1ULL<<56) - 1) -#endif -#ifndef DRM_FORMAT_MOD_LINEAR -#define DRM_FORMAT_MOD_LINEAR 0 -#endif struct linux_dmabuf_buffer; typedef void (*dmabuf_user_data_destroy_func)(