summaryrefslogtreecommitdiff
path: root/src/glx/x11/dri2.h
diff options
context:
space:
mode:
authorIan Romanick <idr@freedesktop.org>2009-04-20 20:52:56 -0700
committerIan Romanick <ian.d.romanick@intel.com>2009-04-24 12:48:20 -0700
commitd8d7b2c3955fa2204bb031fea17afae994de79f7 (patch)
tree4e0fc5090335c5aaef70acb39846549dbadf873f /src/glx/x11/dri2.h
parent1c9786894cc3ce66665ca507a6daf6a829e5af89 (diff)
DRI2: Implement protocol for DRI2GetBuffersWithFormat
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kristian Høgsberg <krh@redhat.com>
Diffstat (limited to 'src/glx/x11/dri2.h')
-rw-r--r--src/glx/x11/dri2.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/glx/x11/dri2.h b/src/glx/x11/dri2.h
index 356c6bcb55..b0e61f80d7 100644
--- a/src/glx/x11/dri2.h
+++ b/src/glx/x11/dri2.h
@@ -63,6 +63,16 @@ DRI2GetBuffers(Display *dpy, XID drawable,
unsigned int *attachments, int count,
int *outCount);
+/**
+ * \note
+ * This function is only supported with DRI2 version 1.1 or later.
+ */
+extern DRI2Buffer *
+DRI2GetBuffersWithFormat(Display *dpy, XID drawable,
+ int *width, int *height,
+ unsigned int *attachments, int count,
+ int *outCount);
+
extern void
DRI2CopyRegion(Display *dpy, XID drawable, XserverRegion region,
CARD32 dest, CARD32 src);