aboutsummaryrefslogtreecommitdiffstats
path: root/src/loader/loader_dri3_helper.h
diff options
context:
space:
mode:
authorBoyan Ding <[email protected]>2015-07-21 23:44:01 +0800
committerMartin Peres <[email protected]>2015-11-17 17:26:20 +0200
commitbd6131a8d1e1cf0e6eb5494b50607a4ccb21e1f9 (patch)
treeb0a9d95748af8a03c919674668517653ec0335f9 /src/loader/loader_dri3_helper.h
parentf35198badeb956a8f435727d805a47c7e42610d0 (diff)
loader/dri3: Expose function to create __DRIimage from pixmap
Used to support EGL_KHR_image_pixmap. Signed-off-by: Boyan Ding <[email protected]> Reviewed-by: Martin Peres <[email protected]> Reviewed-by: Kristian Høgsberg <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/loader/loader_dri3_helper.h')
-rw-r--r--src/loader/loader_dri3_helper.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/loader/loader_dri3_helper.h b/src/loader/loader_dri3_helper.h
index 54c2a52f5e1..5b8fd1d24ca 100644
--- a/src/loader/loader_dri3_helper.h
+++ b/src/loader/loader_dri3_helper.h
@@ -28,6 +28,7 @@
#include <stdint.h>
#include <xcb/xcb.h>
+#include <xcb/dri3.h>
#include <xcb/present.h>
#include <GL/gl.h>
@@ -221,6 +222,14 @@ int loader_dri3_open(xcb_connection_t *conn,
xcb_window_t root,
uint32_t provider);
+__DRIimage *
+loader_dri3_create_image(xcb_connection_t *c,
+ xcb_dri3_buffer_from_pixmap_reply_t *bp_reply,
+ unsigned int format,
+ __DRIscreen *dri_screen,
+ const __DRIimageExtension *image,
+ void *loaderPrivate);
+
int
loader_dri3_get_buffers(__DRIdrawable *driDrawable,
unsigned int format,