mirror of
https://gitlab.freedesktop.org/xorg/proto/xorgproto.git
synced 2025-12-20 04:40:10 +01:00
Rename Connect as Open, make it work. Add SHM SyncFences
Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
ef3eca7054
commit
f078e7fe06
2 changed files with 24 additions and 7 deletions
15
dri3proto.h
15
dri3proto.h
|
|
@ -31,7 +31,7 @@
|
|||
#define DRI3NumberEvents 0
|
||||
|
||||
#define X_DRI3QueryVersion 0
|
||||
#define X_DRI3Connect 1
|
||||
#define X_DRI3Open 1
|
||||
#define X_DRI3SelectInput 2
|
||||
#define X_DRI3GetSyncShmFD 3
|
||||
|
||||
|
|
@ -64,14 +64,15 @@ typedef struct {
|
|||
CARD8 reqType;
|
||||
CARD8 dri3ReqType;
|
||||
CARD16 length B16;
|
||||
CARD32 window B32;
|
||||
CARD32 drawable B32;
|
||||
CARD32 driverType B32;
|
||||
} xDRI3ConnectReq;
|
||||
#define sz_xDRI3ConnectReq 12
|
||||
CARD32 provider B32;
|
||||
} xDRI3OpenReq;
|
||||
#define sz_xDRI3OpenReq 16
|
||||
|
||||
typedef struct {
|
||||
BYTE type; /* X_Reply */
|
||||
BYTE pad1;
|
||||
CARD8 nfd;
|
||||
CARD16 sequenceNumber B16;
|
||||
CARD32 length B32;
|
||||
CARD32 driverNameLength B32;
|
||||
|
|
@ -80,8 +81,8 @@ typedef struct {
|
|||
CARD32 pad4 B32;
|
||||
CARD32 pad5 B32;
|
||||
CARD32 pad6 B32;
|
||||
} xDRI3ConnectReply;
|
||||
#define sz_xDRI3ConnectReply 32
|
||||
} xDRI3OpenReply;
|
||||
#define sz_xDRI3OpenReply 32
|
||||
|
||||
typedef struct {
|
||||
CARD8 reqType;
|
||||
|
|
|
|||
|
|
@ -89,6 +89,7 @@ The name of this extension is "DRI3" (third time is the charm?).
|
|||
driverType: DRI3DRIVER
|
||||
provider: PROVIDER
|
||||
▶
|
||||
nfd: CARD8
|
||||
driver: STRING
|
||||
device: FD
|
||||
└───
|
||||
|
|
@ -145,6 +146,21 @@ The name of this extension is "DRI3" (third time is the charm?).
|
|||
with a file descriptor referencing the underlying direct
|
||||
rendering object.
|
||||
|
||||
┌───
|
||||
DRI3GetSyncFenceFd
|
||||
fence: FENCE
|
||||
window: WINDOW
|
||||
▶
|
||||
nfd: CARD8
|
||||
fd: FD
|
||||
└───
|
||||
Errors: Fence, Match
|
||||
|
||||
Pass back a shared memory segment associated with a sync fence
|
||||
object. Pass this fd to the XShmFence library to map and
|
||||
manipulate the fence.
|
||||
|
||||
|
||||
❄ ❄ ❄ ❄ ❄ ❄ ❄
|
||||
|
||||
9. Extension Events
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue