diff options
author | Ian Romanick <[email protected]> | 2009-04-20 20:52:56 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2009-04-24 12:48:20 -0700 |
commit | d8d7b2c3955fa2204bb031fea17afae994de79f7 (patch) | |
tree | 4e0fc5090335c5aaef70acb39846549dbadf873f /src/glx/x11/dri2.h | |
parent | 1c9786894cc3ce66665ca507a6daf6a829e5af89 (diff) |
DRI2: Implement protocol for DRI2GetBuffersWithFormat
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Kristian Høgsberg <[email protected]>
Diffstat (limited to 'src/glx/x11/dri2.h')
-rw-r--r-- | src/glx/x11/dri2.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/glx/x11/dri2.h b/src/glx/x11/dri2.h index 356c6bcb55d..b0e61f80d70 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); |