aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/render/dmabuf.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/wlr/render/dmabuf.h')
-rw-r--r--include/wlr/render/dmabuf.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/wlr/render/dmabuf.h b/include/wlr/render/dmabuf.h
index 33c3a129..32cfe874 100644
--- a/include/wlr/render/dmabuf.h
+++ b/include/wlr/render/dmabuf.h
@@ -16,6 +16,10 @@
#define DRM_FORMAT_MOD_INVALID ((1ULL<<56) - 1)
#endif
+#ifndef DRM_FORMAT_MOD_LINEAR
+#define DRM_FORMAT_MOD_LINEAR 0
+#endif
+
#define WLR_DMABUF_MAX_PLANES 4
enum wlr_dmabuf_attributes_flags {