summaryrefslogtreecommitdiffstats
path: root/src/egl/drivers/dri2/egl_dri2.h
diff options
context:
space:
mode:
authorAnder Conselvan de Oliveira <[email protected]>2012-01-25 16:24:17 +0200
committerKristian Høgsberg <[email protected]>2012-03-28 22:14:34 -0400
commit4a976b60b1139021ef00e722361b7e1ad8e0810d (patch)
treeef9901020660e7921b5d0fe0f974115f4ded2674 /src/egl/drivers/dri2/egl_dri2.h
parentfd6acb97fb9164b57daf3ca4b1bd637ca4685b64 (diff)
egl_dri2: use gbm_surface as the native window type in drm platform
Diffstat (limited to 'src/egl/drivers/dri2/egl_dri2.h')
-rw-r--r--src/egl/drivers/dri2/egl_dri2.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h
index 84ea0b694c8..c30e2305d83 100644
--- a/src/egl/drivers/dri2/egl_dri2.h
+++ b/src/egl/drivers/dri2/egl_dri2.h
@@ -177,6 +177,17 @@ struct dri2_egl_surface
int format;
#endif
+#ifdef HAVE_DRM_PLATFORM
+ struct gbm_dri_surface *gbm_surf;
+ struct {
+ struct gbm_bo *bo;
+ int locked;
+ } color_buffers[3], *back, *current;
+#ifndef HAVE_WAYLAND_PLATFORM
+ __DRIbuffer *dri_buffers[__DRI_BUFFER_COUNT];
+#endif
+#endif
+
#ifdef HAVE_ANDROID_PLATFORM
struct ANativeWindow *window;
struct ANativeWindowBuffer *buffer;