diff options
author | Ilia Mirkin <imirkin@alum.mit.edu> | 2018-02-09 20:49:48 -0500 |
---|---|---|
committer | Daniel Stone <daniels@collabora.com> | 2018-02-16 12:33:32 +0000 |
commit | 56c3917ffd1f05942246e2532ca4a5707554a2fc (patch) | |
tree | b648a03a8ead1b859236d819773aafbd9e61154e /common.h | |
parent | c2d4ba86de1bebca536ef03525b067a42106f06e (diff) | |
download | kmscube-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; }; |