Search
SailfishOS Open Build Service
>
Projects
>
home:sledge
:
branches:nemo:devel:hw:ti:omap4:common
>
xorg-x11-proto-dri2proto
> 0002-video-support-for-dri2.patch
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 0002-video-support-for-dri2.patch of Package xorg-x11-proto-dri2proto
--- a/dri2proto.h 2012-07-06 14:38:43.000000000 +0100 +++ b/dri2proto.h 2013-04-22 17:39:31.461811521 +0100 @@ -55,6 +55,11 @@ #define X_DRI2WaitSBC 11 #define X_DRI2SwapInterval 12 #define X_DRI2GetParam 13 +#define X_DRI2GetBuffersVid 14 +#define X_DRI2SwapBuffersVid 15 +#define X_DRI2SetAttribute 16 +#define X_DRI2GetAttribute 17 +#define X_DRI2GetFormats 18 /* * Events @@ -165,6 +170,17 @@ #define sz_xDRI2GetBuffersReq 12 typedef struct { + CARD8 reqType; + CARD8 dri2ReqType; + CARD16 length B16; + CARD32 drawable B32; + CARD32 width B32; + CARD32 height B32; + CARD32 count B32; +} xDRI2GetBuffersVidReq; +#define sz_xDRI2GetBuffersVidReq 20 + +typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber B16; @@ -218,6 +234,25 @@ #define sz_xDRI2SwapBuffersReq 32 typedef struct { + CARD8 reqType; + CARD8 dri2ReqType; + CARD16 length B16; + CARD32 drawable B32; + CARD32 target_msc_hi B32; + CARD32 target_msc_lo B32; + CARD32 divisor_hi B32; + CARD32 divisor_lo B32; + CARD32 remainder_hi B32; + CARD32 remainder_lo B32; + CARD32 source B32; + CARD32 x1 B32; + CARD32 y1 B32; + CARD32 x2 B32; + CARD32 y2 B32; +} xDRI2SwapBuffersVidReq; +#define sz_xDRI2SwapBuffersVidReq 52 + +typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber B16; @@ -318,6 +353,60 @@ #define sz_xDRI2BufferSwapComplete2 32 typedef struct { + CARD8 reqType; + CARD8 dri2ReqType; + CARD16 length B16; + CARD32 drawable B32; + CARD32 attribute B32; +} xDRI2SetAttributeReq; +#define sz_xDRI2SetAttributeReq 12 + +typedef struct { + CARD8 reqType; + CARD8 dri2ReqType; + CARD16 length B16; + CARD32 drawable B32; + CARD32 attribute B32; +} xDRI2GetAttributeReq; +#define sz_xDRI2GetAttributeReq 12 + +typedef struct { + BYTE type; /* X_Reply */ + BYTE pad1; + CARD16 sequenceNumber B16; + CARD32 length B32; + CARD32 pad2 B32; + CARD32 pad3 B32; + CARD32 pad4 B32; + CARD32 pad5 B32; + CARD32 pad6 B32; + CARD32 pad7 B32; +} xDRI2GetAttributeReply; +#define sz_xDRI2GetAttributeReply 32 + +typedef struct { + CARD8 reqType; + CARD8 dri2ReqType; + CARD16 length B16; + CARD32 drawable B32; +} xDRI2GetFormatsReq; +#define sz_xDRI2GetFormatsReq 8 + +typedef struct { + BYTE type; /* X_Reply */ + BYTE pad1; + CARD16 sequenceNumber B16; + CARD32 length B32; + CARD32 pad2 B32; + CARD32 pad3 B32; + CARD32 pad4 B32; + CARD32 pad5 B32; + CARD32 pad6 B32; + CARD32 pad7 B32; +} xDRI2GetFormatsReply; +#define sz_xDRI2GetFormatsReply 32 + +typedef struct { CARD8 type; CARD8 pad; CARD16 sequenceNumber B16; --- a/dri2tokens.h 2012-07-11 22:12:38.000000000 +0100 +++ b/dri2tokens.h 2013-04-22 17:40:16.925145185 +0100 @@ -52,6 +52,7 @@ #define DRI2DriverDRI 0 #define DRI2DriverVDPAU 1 +#define DRI2DriverXV 2 /* Event sub-types for the swap complete event */ #define DRI2_EXCHANGE_COMPLETE 0x1