summaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
authorBen Widawsky <ben@bwidawsk.net>2016-12-01 10:24:47 -0800
committerBen Widawsky <ben@bwidawsk.net>2017-04-14 14:14:16 -0700
commit5816934b875f7fd01061a7a9b72d8b6eff99910f (patch)
tree87807695da50691909d9191e0db0087bd1618585 /common.h
parent13bd303d3ea8eb10f107dbd82be0259c5e5bd765 (diff)
downloadkmscube-5816934b875f7fd01061a7a9b72d8b6eff99910f.tar.gz
common: Give cmdline parameter for forcing modifiers
Signed-off-by: Ben Widawsky <ben@bwidawsk.net> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Diffstat (limited to 'common.h')
-rw-r--r--common.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/common.h b/common.h
index 2eceac7..639bd87 100644
--- a/common.h
+++ b/common.h
@@ -32,6 +32,14 @@
#include <gbm.h>
#include <drm_fourcc.h>
+#ifndef DRM_FORMAT_MOD_LINEAR
+#define DRM_FORMAT_MOD_LINEAR 0
+#endif
+
+#ifndef DRM_FORMAT_MOD_INVALID
+#define DRM_FORMAT_MOD_INVALID ((((__u64)0) << 56) | ((1ULL << 56) - 1))
+#endif
+
#ifndef EGL_KHR_platform_gbm
#define EGL_KHR_platform_gbm 1
#define EGL_PLATFORM_GBM_KHR 0x31D7
@@ -55,7 +63,7 @@ struct gbm {
int width, height;
};
-const struct gbm * init_gbm(int drm_fd, int w, int h);
+const struct gbm * init_gbm(int drm_fd, int w, int h, uint64_t modifier);
struct egl {