1 | /* $XFree86: xc/lib/GL/dri/xf86dristr.h,v 1.10 2002/10/30 12:51:25 alanh Exp $ */
|
---|
2 | /**************************************************************************
|
---|
3 |
|
---|
4 | Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
|
---|
5 | Copyright 2000 VA Linux Systems, Inc.
|
---|
6 | All Rights Reserved.
|
---|
7 |
|
---|
8 | Permission is hereby granted, free of charge, to any person obtaining a
|
---|
9 | copy of this software and associated documentation files (the
|
---|
10 | "Software"), to deal in the Software without restriction, including
|
---|
11 | without limitation the rights to use, copy, modify, merge, publish,
|
---|
12 | distribute, sub license, and/or sell copies of the Software, and to
|
---|
13 | permit persons to whom the Software is furnished to do so, subject to
|
---|
14 | the following conditions:
|
---|
15 |
|
---|
16 | The above copyright notice and this permission notice (including the
|
---|
17 | next paragraph) shall be included in all copies or substantial portions
|
---|
18 | of the Software.
|
---|
19 |
|
---|
20 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
---|
21 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
---|
22 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
---|
23 | IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
|
---|
24 | ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
---|
25 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
---|
26 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
---|
27 |
|
---|
28 | **************************************************************************/
|
---|
29 |
|
---|
30 | /*
|
---|
31 | * Authors:
|
---|
32 | * Kevin E. Martin <[email protected]>
|
---|
33 | * Jens Owen <[email protected]>
|
---|
34 | * Rickard E. (Rik) Fiath <[email protected]>
|
---|
35 | *
|
---|
36 | */
|
---|
37 |
|
---|
38 | #ifndef _XF86DRISTR_H_
|
---|
39 | #define _XF86DRISTR_H_
|
---|
40 |
|
---|
41 | #include "xf86dri.h"
|
---|
42 |
|
---|
43 | #define XF86DRINAME "XFree86-DRI"
|
---|
44 |
|
---|
45 | /* The DRI version number. This was originally set to be the same of the
|
---|
46 | * XFree86 version number. However, this version is really indepedent of
|
---|
47 | * the XFree86 version.
|
---|
48 | *
|
---|
49 | * Version History:
|
---|
50 | * 4.0.0: Original
|
---|
51 | * 4.0.1: Patch to bump clipstamp when windows are destroyed, 28 May 02
|
---|
52 | * 4.1.0: Add transition from single to multi in DRMInfo rec, 24 Jun 02
|
---|
53 | */
|
---|
54 | #define XF86DRI_MAJOR_VERSION 4
|
---|
55 | #define XF86DRI_MINOR_VERSION 1
|
---|
56 | #define XF86DRI_PATCH_VERSION 0
|
---|
57 |
|
---|
58 | typedef struct _XF86DRIQueryVersion {
|
---|
59 | CARD8 reqType; /* always DRIReqCode */
|
---|
60 | CARD8 driReqType; /* always X_DRIQueryVersion */
|
---|
61 | CARD16 length B16;
|
---|
62 | } xXF86DRIQueryVersionReq;
|
---|
63 | #define sz_xXF86DRIQueryVersionReq 4
|
---|
64 |
|
---|
65 | typedef struct {
|
---|
66 | BYTE type; /* X_Reply */
|
---|
67 | BOOL pad1;
|
---|
68 | CARD16 sequenceNumber B16;
|
---|
69 | CARD32 length B32;
|
---|
70 | CARD16 majorVersion B16; /* major version of DRI protocol */
|
---|
71 | CARD16 minorVersion B16; /* minor version of DRI protocol */
|
---|
72 | CARD32 patchVersion B32; /* patch version of DRI protocol */
|
---|
73 | CARD32 pad3 B32;
|
---|
74 | CARD32 pad4 B32;
|
---|
75 | CARD32 pad5 B32;
|
---|
76 | CARD32 pad6 B32;
|
---|
77 | } xXF86DRIQueryVersionReply;
|
---|
78 | #define sz_xXF86DRIQueryVersionReply 32
|
---|
79 |
|
---|
80 | typedef struct _XF86DRIQueryDirectRenderingCapable {
|
---|
81 | CARD8 reqType; /* always DRIReqCode */
|
---|
82 | CARD8 driReqType; /* X_DRIQueryDirectRenderingCapable */
|
---|
83 | CARD16 length B16;
|
---|
84 | CARD32 screen B32;
|
---|
85 | } xXF86DRIQueryDirectRenderingCapableReq;
|
---|
86 | #define sz_xXF86DRIQueryDirectRenderingCapableReq 8
|
---|
87 |
|
---|
88 | typedef struct {
|
---|
89 | BYTE type; /* X_Reply */
|
---|
90 | BOOL pad1;
|
---|
91 | CARD16 sequenceNumber B16;
|
---|
92 | CARD32 length B32;
|
---|
93 | BOOL isCapable;
|
---|
94 | BOOL pad2;
|
---|
95 | BOOL pad3;
|
---|
96 | BOOL pad4;
|
---|
97 | CARD32 pad5 B32;
|
---|
98 | CARD32 pad6 B32;
|
---|
99 | CARD32 pad7 B32;
|
---|
100 | CARD32 pad8 B32;
|
---|
101 | CARD32 pad9 B32;
|
---|
102 | } xXF86DRIQueryDirectRenderingCapableReply;
|
---|
103 | #define sz_xXF86DRIQueryDirectRenderingCapableReply 32
|
---|
104 |
|
---|
105 | typedef struct _XF86DRIOpenConnection {
|
---|
106 | CARD8 reqType; /* always DRIReqCode */
|
---|
107 | CARD8 driReqType; /* always X_DRIOpenConnection */
|
---|
108 | CARD16 length B16;
|
---|
109 | CARD32 screen B32;
|
---|
110 | } xXF86DRIOpenConnectionReq;
|
---|
111 | #define sz_xXF86DRIOpenConnectionReq 8
|
---|
112 |
|
---|
113 | typedef struct {
|
---|
114 | BYTE type; /* X_Reply */
|
---|
115 | BOOL pad1;
|
---|
116 | CARD16 sequenceNumber B16;
|
---|
117 | CARD32 length B32;
|
---|
118 | CARD32 hSAREALow B32;
|
---|
119 | CARD32 hSAREAHigh B32;
|
---|
120 | CARD32 busIdStringLength B32;
|
---|
121 | CARD32 pad6 B32;
|
---|
122 | CARD32 pad7 B32;
|
---|
123 | CARD32 pad8 B32;
|
---|
124 | } xXF86DRIOpenConnectionReply;
|
---|
125 | #define sz_xXF86DRIOpenConnectionReply 32
|
---|
126 |
|
---|
127 | typedef struct _XF86DRIAuthConnection {
|
---|
128 | CARD8 reqType; /* always DRIReqCode */
|
---|
129 | CARD8 driReqType; /* always X_DRICloseConnection */
|
---|
130 | CARD16 length B16;
|
---|
131 | CARD32 screen B32;
|
---|
132 | CARD32 magic B32;
|
---|
133 | } xXF86DRIAuthConnectionReq;
|
---|
134 | #define sz_xXF86DRIAuthConnectionReq 12
|
---|
135 |
|
---|
136 | typedef struct {
|
---|
137 | BYTE type;
|
---|
138 | BOOL pad1;
|
---|
139 | CARD16 sequenceNumber B16;
|
---|
140 | CARD32 length B32;
|
---|
141 | CARD32 authenticated B32;
|
---|
142 | CARD32 pad2 B32;
|
---|
143 | CARD32 pad3 B32;
|
---|
144 | CARD32 pad4 B32;
|
---|
145 | CARD32 pad5 B32;
|
---|
146 | CARD32 pad6 B32;
|
---|
147 | } xXF86DRIAuthConnectionReply;
|
---|
148 | #define zx_xXF86DRIAuthConnectionReply 32
|
---|
149 |
|
---|
150 | typedef struct _XF86DRICloseConnection {
|
---|
151 | CARD8 reqType; /* always DRIReqCode */
|
---|
152 | CARD8 driReqType; /* always X_DRICloseConnection */
|
---|
153 | CARD16 length B16;
|
---|
154 | CARD32 screen B32;
|
---|
155 | } xXF86DRICloseConnectionReq;
|
---|
156 | #define sz_xXF86DRICloseConnectionReq 8
|
---|
157 |
|
---|
158 | typedef struct _XF86DRIGetClientDriverName {
|
---|
159 | CARD8 reqType; /* always DRIReqCode */
|
---|
160 | CARD8 driReqType; /* always X_DRIGetClientDriverName */
|
---|
161 | CARD16 length B16;
|
---|
162 | CARD32 screen B32;
|
---|
163 | } xXF86DRIGetClientDriverNameReq;
|
---|
164 | #define sz_xXF86DRIGetClientDriverNameReq 8
|
---|
165 |
|
---|
166 | typedef struct {
|
---|
167 | BYTE type; /* X_Reply */
|
---|
168 | BOOL pad1;
|
---|
169 | CARD16 sequenceNumber B16;
|
---|
170 | CARD32 length B32;
|
---|
171 | CARD32 ddxDriverMajorVersion B32;
|
---|
172 | CARD32 ddxDriverMinorVersion B32;
|
---|
173 | CARD32 ddxDriverPatchVersion B32;
|
---|
174 | CARD32 clientDriverNameLength B32;
|
---|
175 | CARD32 pad5 B32;
|
---|
176 | CARD32 pad6 B32;
|
---|
177 | } xXF86DRIGetClientDriverNameReply;
|
---|
178 | #define sz_xXF86DRIGetClientDriverNameReply 32
|
---|
179 |
|
---|
180 | typedef struct _XF86DRICreateContext {
|
---|
181 | CARD8 reqType; /* always DRIReqCode */
|
---|
182 | CARD8 driReqType; /* always X_DRICreateContext */
|
---|
183 | CARD16 length B16;
|
---|
184 | CARD32 screen B32;
|
---|
185 | CARD32 visual B32;
|
---|
186 | CARD32 context B32;
|
---|
187 | } xXF86DRICreateContextReq;
|
---|
188 | #define sz_xXF86DRICreateContextReq 16
|
---|
189 |
|
---|
190 | typedef struct {
|
---|
191 | BYTE type; /* X_Reply */
|
---|
192 | BOOL pad1;
|
---|
193 | CARD16 sequenceNumber B16;
|
---|
194 | CARD32 length B32;
|
---|
195 | CARD32 hHWContext B32;
|
---|
196 | CARD32 pad2 B32;
|
---|
197 | CARD32 pad3 B32;
|
---|
198 | CARD32 pad4 B32;
|
---|
199 | CARD32 pad5 B32;
|
---|
200 | CARD32 pad6 B32;
|
---|
201 | } xXF86DRICreateContextReply;
|
---|
202 | #define sz_xXF86DRICreateContextReply 32
|
---|
203 |
|
---|
204 | typedef struct _XF86DRIDestroyContext {
|
---|
205 | CARD8 reqType; /* always DRIReqCode */
|
---|
206 | CARD8 driReqType; /* always X_DRIDestroyContext */
|
---|
207 | CARD16 length B16;
|
---|
208 | CARD32 screen B32;
|
---|
209 | CARD32 context B32;
|
---|
210 | } xXF86DRIDestroyContextReq;
|
---|
211 | #define sz_xXF86DRIDestroyContextReq 12
|
---|
212 |
|
---|
213 | typedef struct _XF86DRICreateDrawable {
|
---|
214 | CARD8 reqType; /* always DRIReqCode */
|
---|
215 | CARD8 driReqType; /* always X_DRICreateDrawable */
|
---|
216 | CARD16 length B16;
|
---|
217 | CARD32 screen B32;
|
---|
218 | CARD32 drawable B32;
|
---|
219 | } xXF86DRICreateDrawableReq;
|
---|
220 | #define sz_xXF86DRICreateDrawableReq 12
|
---|
221 |
|
---|
222 | typedef struct {
|
---|
223 | BYTE type; /* X_Reply */
|
---|
224 | BOOL pad1;
|
---|
225 | CARD16 sequenceNumber B16;
|
---|
226 | CARD32 length B32;
|
---|
227 | CARD32 hHWDrawable B32;
|
---|
228 | CARD32 pad2 B32;
|
---|
229 | CARD32 pad3 B32;
|
---|
230 | CARD32 pad4 B32;
|
---|
231 | CARD32 pad5 B32;
|
---|
232 | CARD32 pad6 B32;
|
---|
233 | } xXF86DRICreateDrawableReply;
|
---|
234 | #define sz_xXF86DRICreateDrawableReply 32
|
---|
235 |
|
---|
236 | typedef struct _XF86DRIDestroyDrawable {
|
---|
237 | CARD8 reqType; /* always DRIReqCode */
|
---|
238 | CARD8 driReqType; /* always X_DRIDestroyDrawable */
|
---|
239 | CARD16 length B16;
|
---|
240 | CARD32 screen B32;
|
---|
241 | CARD32 drawable B32;
|
---|
242 | } xXF86DRIDestroyDrawableReq;
|
---|
243 | #define sz_xXF86DRIDestroyDrawableReq 12
|
---|
244 |
|
---|
245 | typedef struct _XF86DRIGetDrawableInfo {
|
---|
246 | CARD8 reqType; /* always DRIReqCode */
|
---|
247 | CARD8 driReqType; /* always X_DRIGetDrawableInfo */
|
---|
248 | CARD16 length B16;
|
---|
249 | CARD32 screen B32;
|
---|
250 | CARD32 drawable B32;
|
---|
251 | } xXF86DRIGetDrawableInfoReq;
|
---|
252 | #define sz_xXF86DRIGetDrawableInfoReq 12
|
---|
253 |
|
---|
254 | typedef struct {
|
---|
255 | BYTE type; /* X_Reply */
|
---|
256 | BOOL pad1;
|
---|
257 | CARD16 sequenceNumber B16;
|
---|
258 | CARD32 length B32;
|
---|
259 | CARD32 drawableTableIndex B32;
|
---|
260 | CARD32 drawableTableStamp B32;
|
---|
261 | INT16 drawableX B16;
|
---|
262 | INT16 drawableY B16;
|
---|
263 | INT16 drawableWidth B16;
|
---|
264 | INT16 drawableHeight B16;
|
---|
265 | CARD32 numClipRects B32;
|
---|
266 | INT16 backX B16;
|
---|
267 | INT16 backY B16;
|
---|
268 | CARD32 numBackClipRects B32;
|
---|
269 | } xXF86DRIGetDrawableInfoReply;
|
---|
270 |
|
---|
271 | #define sz_xXF86DRIGetDrawableInfoReply 36
|
---|
272 |
|
---|
273 |
|
---|
274 | typedef struct _XF86DRIGetDeviceInfo {
|
---|
275 | CARD8 reqType; /* always DRIReqCode */
|
---|
276 | CARD8 driReqType; /* always X_DRIGetDeviceInfo */
|
---|
277 | CARD16 length B16;
|
---|
278 | CARD32 screen B32;
|
---|
279 | } xXF86DRIGetDeviceInfoReq;
|
---|
280 | #define sz_xXF86DRIGetDeviceInfoReq 8
|
---|
281 |
|
---|
282 | typedef struct {
|
---|
283 | BYTE type; /* X_Reply */
|
---|
284 | BOOL pad1;
|
---|
285 | CARD16 sequenceNumber B16;
|
---|
286 | CARD32 length B32;
|
---|
287 | CARD32 hFrameBufferLow B32;
|
---|
288 | CARD32 hFrameBufferHigh B32;
|
---|
289 | CARD32 framebufferOrigin B32;
|
---|
290 | CARD32 framebufferSize B32;
|
---|
291 | CARD32 framebufferStride B32;
|
---|
292 | CARD32 devPrivateSize B32;
|
---|
293 | } xXF86DRIGetDeviceInfoReply;
|
---|
294 | #define sz_xXF86DRIGetDeviceInfoReply 32
|
---|
295 |
|
---|
296 | typedef struct _XF86DRIOpenFullScreen {
|
---|
297 | CARD8 reqType; /* always DRIReqCode */
|
---|
298 | CARD8 driReqType; /* always X_DRIOpenFullScreen */
|
---|
299 | CARD16 length B16;
|
---|
300 | CARD32 screen B32;
|
---|
301 | CARD32 drawable B32;
|
---|
302 | } xXF86DRIOpenFullScreenReq;
|
---|
303 | #define sz_xXF86DRIOpenFullScreenReq 12
|
---|
304 |
|
---|
305 | typedef struct {
|
---|
306 | BYTE type;
|
---|
307 | BOOL pad1;
|
---|
308 | CARD16 sequenceNumber B16;
|
---|
309 | CARD32 length B32;
|
---|
310 | CARD32 isFullScreen B32;
|
---|
311 | CARD32 pad2 B32;
|
---|
312 | CARD32 pad3 B32;
|
---|
313 | CARD32 pad4 B32;
|
---|
314 | CARD32 pad5 B32;
|
---|
315 | CARD32 pad6 B32;
|
---|
316 | } xXF86DRIOpenFullScreenReply;
|
---|
317 | #define sz_xXF86DRIOpenFullScreenReply 32
|
---|
318 |
|
---|
319 | typedef struct _XF86DRICloseFullScreen {
|
---|
320 | CARD8 reqType; /* always DRIReqCode */
|
---|
321 | CARD8 driReqType; /* always X_DRICloseFullScreen */
|
---|
322 | CARD16 length B16;
|
---|
323 | CARD32 screen B32;
|
---|
324 | CARD32 drawable B32;
|
---|
325 | } xXF86DRICloseFullScreenReq;
|
---|
326 | #define sz_xXF86DRICloseFullScreenReq 12
|
---|
327 |
|
---|
328 | typedef struct {
|
---|
329 | BYTE type;
|
---|
330 | BOOL pad1;
|
---|
331 | CARD16 sequenceNumber B16;
|
---|
332 | CARD32 length B32;
|
---|
333 | CARD32 pad2 B32;
|
---|
334 | CARD32 pad3 B32;
|
---|
335 | CARD32 pad4 B32;
|
---|
336 | CARD32 pad5 B32;
|
---|
337 | CARD32 pad6 B32;
|
---|
338 | CARD32 pad7 B32;
|
---|
339 | } xXF86DRICloseFullScreenReply;
|
---|
340 | #define sz_xXF86DRICloseFullScreenReply 32
|
---|
341 |
|
---|
342 |
|
---|
343 | #endif /* _XF86DRISTR_H_ */
|
---|