diff options
author | Thomas Hellstrom <unichrome@shipmail.org> | 2004-11-13 11:09:23 +0000 |
---|---|---|
committer | Thomas Hellstrom <unichrome@shipmail.org> | 2004-11-13 11:09:23 +0000 |
commit | e57cb44cb47b1a25bcc0cce0dbc19e95abdf4ada (patch) | |
tree | e72104f1370596e7601ef3ea029fd0b2a80f6642 | |
parent | 12ef8daf8c850ae41cf3991b6588796b678b8450 (diff) | |
download | xorg-proto-videoproto-e57cb44cb47b1a25bcc0cce0dbc19e95abdf4ada.tar.gz |
lib/XvMC/Imake
Added support for automatic loading of the correct hardware XvMC driver.
This involves a protocol extension of the XvMC protocol. The XvMC
revision number was bumped.
-rw-r--r-- | XvMC.h | 2 | ||||
-rw-r--r-- | XvMCproto.h | 27 |
2 files changed, 27 insertions, 2 deletions
@@ -10,7 +10,7 @@ #define XvMCNumEvents 0 #define XvMCNumErrors 3 #define XvMCVersion 1 -#define XvMCRevision 0 +#define XvMCRevision 1 #define XvMCBadContext 0 #define XvMCBadSurface 1 diff --git a/XvMCproto.h b/XvMCproto.h index 46ce41f..cce3bb0 100644 --- a/XvMCproto.h +++ b/XvMCproto.h @@ -12,7 +12,8 @@ #define xvmc_CreateSubpicture 6 #define xvmc_DestroySubpicture 7 #define xvmc_ListSubpictureTypes 8 -#define xvmc_LastRequest xvmc_ListSubpictureTypes +#define xvmc_GetDRInfo 9 +#define xvmc_LastRequest xvmc_GetDRInfo #define xvmcNumRequest (xvmc_LastRequest + 1) @@ -200,4 +201,28 @@ typedef struct { } xvmcListSubpictureTypesReply; #define sz_xvmcListSubpictureTypesReply 32 +typedef struct { + CARD8 reqType; + CARD8 xvmcReqType; + CARD16 length B16; + CARD32 port B32; + CARD32 shmKey B32; + CARD32 magic B32; +} xvmcGetDRInfoReq; +#define sz_xvmcGetDRInfoReq 16; + +typedef struct { + BYTE type; /* X_Reply */ + BYTE padb1; + CARD16 sequenceNumber B16; + CARD32 length B32; + CARD32 major B32; + CARD32 minor B32; + CARD32 patchLevel B32; + CARD32 nameLen B32; + CARD32 busIDLen B32; + CARD32 isLocal B32; +} xvmcGetDRInfoReply; +#define sz_xvmcGetDRInfoReply 32 + #endif |