aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-10-13 15:12:40 +0200
committerGitHub <noreply@github.com>2018-10-13 15:12:40 +0200
commite4a1560433010903ed1bb442a4e22cf2501d4b86 (patch)
treeb6ebf88e1edae7631ced8d2ed7b36bd5121b10d9 /include
parentcff471ce3ed2b3ceeb35c0b1c44fbde0a6533445 (diff)
parentaffbfb6a28cfb2a5385e8a2e0417137599f06fa0 (diff)
Merge pull request #1304 from nyorain/dmabuf_v1
Support older wlr_linux_dmabuf_v1 clients
Diffstat (limited to 'include')
-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 {