summaryrefslogtreecommitdiffstats
path: root/src/egl/drivers/dri2/egl_dri2.h
diff options
context:
space:
mode:
authorGurchetan Singh <[email protected]>2016-05-16 16:34:07 -0700
committerChad Versace <[email protected]>2016-06-14 08:51:02 -0700
commit63c5d5c6c46c8472ee7a8241a0f80f13d79cb8cd (patch)
treec6c62870de2de068764055ffa345ed57c0a0a480 /src/egl/drivers/dri2/egl_dri2.h
parentafbf5888f508634d30008b5e898c0f7be5d02785 (diff)
Added pbuffer hooks for surfaceless platform
This change enables the creation of pbuffer surfaces on the surfaceless platform. v3: Going back to single-buffered pbuffer plus additional code review changes Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/egl/drivers/dri2/egl_dri2.h')
-rw-r--r--src/egl/drivers/dri2/egl_dri2.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h
index 925294b27d0..29820cc7658 100644
--- a/src/egl/drivers/dri2/egl_dri2.h
+++ b/src/egl/drivers/dri2/egl_dri2.h
@@ -291,8 +291,13 @@ struct dri2_egl_surface
/* EGL-owned buffers */
__DRIbuffer *local_buffers[__DRI_BUFFER_COUNT];
#endif
-};
+#if defined(HAVE_SURFACELESS_PLATFORM)
+ __DRIimage *front;
+ unsigned int visual;
+#endif
+
+};
struct dri2_egl_config
{