[PATCH weston 1/2] simple-dmabuf-drm: Fallback DRM_FORMAT_MOD_LINEAR definition

Daniel Stone daniels at collabora.com
Tue Jun 5 22:06:58 UTC 2018


Just in case we're running on something quite old.

Signed-off-by: Daniel Stone <daniels at collabora.com>
---
 clients/simple-dmabuf-drm.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/clients/simple-dmabuf-drm.c b/clients/simple-dmabuf-drm.c
index df96758c9..fcab30e5c 100644
--- a/clients/simple-dmabuf-drm.c
+++ b/clients/simple-dmabuf-drm.c
@@ -62,6 +62,10 @@
 #include "fullscreen-shell-unstable-v1-client-protocol.h"
 #include "linux-dmabuf-unstable-v1-client-protocol.h"
 
+#ifndef DRM_FORMAT_MOD_LINEAR
+#define DRM_FORMAT_MOD_LINEAR 0
+#endif
+
 struct buffer;
 
 /* Possible options that affect the displayed image */
-- 
2.17.1



More information about the wayland-devel mailing list