summaryrefslogtreecommitdiffstats
path: root/src/egl/drivers/dri2/egl_dri2.h
diff options
context:
space:
mode:
authorKristian Høgsberg <[email protected]>2013-02-02 07:40:51 -0500
committerKristian Høgsberg <[email protected]>2013-03-18 21:03:46 -0400
commit664fe6dc844358dbc5474aa4e936c6180e86f144 (patch)
tree8f7af590d95240cd7c60f5124766fd6b114fba8a /src/egl/drivers/dri2/egl_dri2.h
parent4e8f5c52bb023f48b7503cf13c246f4995d56df7 (diff)
wayland: allocate a __DRIimage for the color buffer
No functional change here, but this will let us query the image for an fd handle later. Reviewed-by: Ander Conselvan de Oliveira <[email protected]>
Diffstat (limited to 'src/egl/drivers/dri2/egl_dri2.h')
-rw-r--r--src/egl/drivers/dri2/egl_dri2.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h
index 84ea2a6027b..7f3ed4e3745 100644
--- a/src/egl/drivers/dri2/egl_dri2.h
+++ b/src/egl/drivers/dri2/egl_dri2.h
@@ -187,7 +187,8 @@ struct dri2_egl_surface
struct {
#ifdef HAVE_WAYLAND_PLATFORM
struct wl_buffer *wl_buffer;
- __DRIbuffer *dri_buffer;
+ __DRIimage *dri_image;
+ int pitch, name;
#endif
#ifdef HAVE_DRM_PLATFORM
struct gbm_bo *bo;