summaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2018-02-09 20:49:48 -0500
committerDaniel Stone <daniels@collabora.com>2018-02-16 12:33:32 +0000
commit56c3917ffd1f05942246e2532ca4a5707554a2fc (patch)
treeb648a03a8ead1b859236d819773aafbd9e61154e /common.h
parentc2d4ba86de1bebca536ef03525b067a42106f06e (diff)
downloadkmscube-56c3917ffd1f05942246e2532ca4a5707554a2fc.tar.gz
formats: use weston's egl config matching logic, centralize format
The GBM surface format has to match the DRM mode. Both are used in a couple of places, so unify it so that it's only set in one place. Note that the GBM and DRM formats are identical. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Daniel Stone <daniels@collabora.com>
Diffstat (limited to 'common.h')
-rw-r--r--common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/common.h b/common.h
index 11ec26e..dc87825 100644
--- a/common.h
+++ b/common.h
@@ -60,6 +60,7 @@ EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformPixmapSurfaceEXT (EGLDisplay dpy,
struct gbm {
struct gbm_device *dev;
struct gbm_surface *surface;
+ uint32_t format;
int width, height;
};