diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-05-01 14:41:55 -0700 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-05-01 14:41:55 -0700 |
commit | 9b5ef83c0b9ef0239ac82adfa9a816f195074dcb (patch) | |
tree | 3d20b49a6f37cbf17a512389c49cfa615a974387 /dri2proto.h | |
parent | 66c56ab10d917e3f47f93178d7eac6430970d3c4 (diff) | |
download | xorg-proto-dri2proto-9b5ef83c0b9ef0239ac82adfa9a816f195074dcb.tar.gz |
Add SwapBuffers request
Add a SwapBuffers request for requesting a front<->back swap. Returns a
whole new set of buffers to the client to allow for triple buffering
etc.
Diffstat (limited to 'dri2proto.h')
-rw-r--r-- | dri2proto.h | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/dri2proto.h b/dri2proto.h index 8d76079..441155e 100644 --- a/dri2proto.h +++ b/dri2proto.h @@ -35,7 +35,7 @@ #define DRI2_NAME "DRI2" #define DRI2_MAJOR 1 -#define DRI2_MINOR 1 +#define DRI2_MINOR 2 #define DRI2NumberErrors 0 #define DRI2NumberEvents 0 @@ -49,6 +49,7 @@ #define X_DRI2GetBuffers 5 #define X_DRI2CopyRegion 6 #define X_DRI2GetBuffersWithFormat 7 +#define X_DRI2SwapBuffers 8 typedef struct { CARD32 attachment B32; @@ -191,4 +192,26 @@ typedef struct { } xDRI2CopyRegionReply; #define sz_xDRI2CopyRegionReply 32 +typedef struct { + CARD8 reqType; + CARD8 dri2ReqType; + CARD16 length B16; + CARD32 drawable B32; +} xDRI2SwapBuffersReq; +#define sz_xDRI2SwapBuffersReq 8 + +typedef struct { + BYTE type; /* X_Reply */ + BYTE pad1; + CARD16 sequenceNumber B16; + CARD32 length B32; + CARD32 count B32; + CARD32 pad3 B32; + CARD32 pad4 B32; + CARD32 pad5 B32; + CARD32 pad6 B32; + CARD32 pad7 B32; +} xDRI2SwapBuffersReply; +#define sz_xDRI2SwapBuffersReply 32 + #endif |