From b79a809d29cf9a5cf0715e59e5f0ce0a2dcc410b Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 8 Oct 2013 16:16:21 -0700 Subject: Add FDFromFence request This lets DRI clients convert a fence back into a local object. Signed-off-by: Keith Packard --- dri3proto.h | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) (limited to 'dri3proto.h') diff --git a/dri3proto.h b/dri3proto.h index 02ea929..ceddee8 100644 --- a/dri3proto.h +++ b/dri3proto.h @@ -35,8 +35,9 @@ #define X_DRI3PixmapFromBuffer 2 #define X_DRI3BufferFromPixmap 3 #define X_DRI3FenceFromFD 4 +#define X_DRI3FDFromFence 5 -#define DRI3NumberRequests 5 +#define DRI3NumberRequests 6 typedef struct { CARD8 reqType; @@ -138,4 +139,29 @@ typedef struct { #define sz_xDRI3FenceFromFDReq 16 +typedef struct { + CARD8 reqType; + CARD8 dri3ReqType; + CARD16 length B16; + CARD32 drawable B32; + CARD32 fence B32; +} xDRI3FDFromFenceReq; + +#define sz_xDRI3FDFromFenceReq 12 + +typedef struct { + BYTE type; /* X_Reply */ + CARD8 nfd; /* Number of file descriptors returned (1) */ + CARD16 sequenceNumber B16; + CARD32 length B32; + CARD32 pad08 B32; + CARD32 pad12 B32; + CARD32 pad16 B32; + CARD32 pad20 B32; + CARD32 pad24 B32; + CARD32 pad28 B32; +} xDRI3FDFromFenceReply; + +#define sz_xDRI3FDFromFenceReply 32 + #endif -- cgit v1.2.3