summaryrefslogtreecommitdiff
path: root/dri3proto.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-06-04 13:28:29 -0700
committerKeith Packard <keithp@keithp.com>2013-06-04 13:28:29 -0700
commitfbb449d411888ce09cae452c823db054cfef2ccd (patch)
treefd1b16ea5f7da84e04d0da4c0518770ab4b6860a /dri3proto.h
parent58ece91deea5fcfaae9ecc098d53294171f5acb8 (diff)
Switch direction of FD passing for Sync Fences
Pass FD from client to server to avoid a round trip. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'dri3proto.h')
-rw-r--r--dri3proto.h38
1 files changed, 14 insertions, 24 deletions
diff --git a/dri3proto.h b/dri3proto.h
index ec58ec0..2b7821c 100644
--- a/dri3proto.h
+++ b/dri3proto.h
@@ -35,7 +35,7 @@
#define X_DRI3PixmapFromBuffer 2
#define X_DRI3BufferFromPixmap 3
#define X_DRI3SelectInput 4
-#define X_DRI3GetSyncFenceFD 5
+#define X_DRI3FenceFromFD 5
#define DRI3NumberRequests 6
@@ -92,6 +92,7 @@ typedef struct {
CARD16 length B16;
CARD32 pixmap B32;
CARD32 drawable B32;
+ CARD32 size B32;
CARD16 width B16;
CARD16 height B16;
CARD16 stride B16;
@@ -99,7 +100,7 @@ typedef struct {
CARD8 bpp;
} xDRI3PixmapFromBufferReq;
-#define sz_xDRI3PixmapFromBufferReq 20
+#define sz_xDRI3PixmapFromBufferReq 24
typedef struct {
CARD8 reqType;
@@ -114,15 +115,15 @@ typedef struct {
CARD8 nfd; /* Number of file descriptors returned (1) */
CARD16 sequenceNumber B16;
CARD32 length B32;
+ CARD32 size B32;
CARD16 width B16;
CARD16 height B16;
CARD16 stride B16;
CARD8 depth;
CARD8 bpp;
- CARD32 size;
- CARD32 pad20;
- CARD32 pad24;
- CARD32 pad28;
+ CARD32 pad20 B32;
+ CARD32 pad24 B32;
+ CARD32 pad28 B32;
} xDRI3BufferFromPixmapReply;
#define sz_xDRI3BufferFromPixmapReply 32
@@ -142,25 +143,14 @@ typedef struct {
CARD8 reqType;
CARD8 dri3ReqType;
CARD16 length B16;
- CARD32 syncFence B32;
- CARD32 window B32;
-} xDRI3GetSyncFenceFd;
-
-#define sz_xDRI3GetSyncFenceFd 12
+ CARD32 drawable B32;
+ CARD32 fence B32;
+ BOOL initially_triggered;
+ CARD8 pad13;
+ CARD16 pad14 B16;
+} xDRI3FenceFromFDReq;
-typedef struct {
- BYTE type; /* X_Reply */
- CARD8 nfd; /* Number of file descriptors returned (1) */
- CARD16 sequenceNumber B16;
- CARD32 length B32;
- CARD32 pad2 B32;
- CARD32 pad3 B32;
- CARD32 pad4 B32;
- CARD32 pad5 B32;
- CARD32 pad6 B32;
- CARD32 pad7 B32;
-} xDRI3GetSyncFenceFdReply;
-#define sz_xDRI3GetSyncFenceFdReply 32
+#define sz_xDRI3FenceFromFDReq 16
/*
* Events