1 /* $XFree86: xc/lib/GL/dri/xf86dristr.h,v 1.10 2002/10/30 12:51:25 alanh Exp $ */
2 /**************************************************************************
4 Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
5 Copyright 2000 VA Linux Systems, Inc.
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:
16 The above copyright notice and this permission notice (including the
17 next paragraph) shall be included in all copies or substantial portions
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.
28 **************************************************************************/
32 * Kevin E. Martin <martin@valinux.com>
33 * Jens Owen <jens@tungstengraphics.com>
34 * Rickard E. (Rik) Fiath <faith@valinux.com>
38 #ifndef _XF86DRISTR_H_
39 #define _XF86DRISTR_H_
43 #define XF86DRINAME "XFree86-DRI"
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.
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 * 5.0.0: Drop XIDs from DRI interface.
55 #define XF86DRI_MAJOR_VERSION 5
56 #define XF86DRI_MINOR_VERSION 0
57 #define XF86DRI_PATCH_VERSION 0
59 typedef struct _XF86DRIQueryVersion
{
60 CARD8 reqType
; /* always DRIReqCode */
61 CARD8 driReqType
; /* always X_DRIQueryVersion */
63 } xXF86DRIQueryVersionReq
;
64 #define sz_xXF86DRIQueryVersionReq 4
67 BYTE type
; /* X_Reply */
69 CARD16 sequenceNumber B16
;
71 CARD16 majorVersion B16
; /* major version of DRI protocol */
72 CARD16 minorVersion B16
; /* minor version of DRI protocol */
73 CARD32 patchVersion B32
; /* patch version of DRI protocol */
78 } xXF86DRIQueryVersionReply
;
79 #define sz_xXF86DRIQueryVersionReply 32
81 typedef struct _XF86DRIQueryDirectRenderingCapable
{
82 CARD8 reqType
; /* always DRIReqCode */
83 CARD8 driReqType
; /* X_DRIQueryDirectRenderingCapable */
86 } xXF86DRIQueryDirectRenderingCapableReq
;
87 #define sz_xXF86DRIQueryDirectRenderingCapableReq 8
90 BYTE type
; /* X_Reply */
92 CARD16 sequenceNumber B16
;
103 } xXF86DRIQueryDirectRenderingCapableReply
;
104 #define sz_xXF86DRIQueryDirectRenderingCapableReply 32
106 typedef struct _XF86DRIOpenConnection
{
107 CARD8 reqType
; /* always DRIReqCode */
108 CARD8 driReqType
; /* always X_DRIOpenConnection */
111 } xXF86DRIOpenConnectionReq
;
112 #define sz_xXF86DRIOpenConnectionReq 8
115 BYTE type
; /* X_Reply */
117 CARD16 sequenceNumber B16
;
119 CARD32 hSAREALow B32
;
120 CARD32 hSAREAHigh B32
;
121 CARD32 busIdStringLength B32
;
125 } xXF86DRIOpenConnectionReply
;
126 #define sz_xXF86DRIOpenConnectionReply 32
128 typedef struct _XF86DRIAuthConnection
{
129 CARD8 reqType
; /* always DRIReqCode */
130 CARD8 driReqType
; /* always X_DRICloseConnection */
134 } xXF86DRIAuthConnectionReq
;
135 #define sz_xXF86DRIAuthConnectionReq 12
140 CARD16 sequenceNumber B16
;
142 CARD32 authenticated B32
;
148 } xXF86DRIAuthConnectionReply
;
149 #define zx_xXF86DRIAuthConnectionReply 32
151 typedef struct _XF86DRICloseConnection
{
152 CARD8 reqType
; /* always DRIReqCode */
153 CARD8 driReqType
; /* always X_DRICloseConnection */
156 } xXF86DRICloseConnectionReq
;
157 #define sz_xXF86DRICloseConnectionReq 8
159 typedef struct _XF86DRIGetClientDriverName
{
160 CARD8 reqType
; /* always DRIReqCode */
161 CARD8 driReqType
; /* always X_DRIGetClientDriverName */
164 } xXF86DRIGetClientDriverNameReq
;
165 #define sz_xXF86DRIGetClientDriverNameReq 8
168 BYTE type
; /* X_Reply */
170 CARD16 sequenceNumber B16
;
172 CARD32 ddxDriverMajorVersion B32
;
173 CARD32 ddxDriverMinorVersion B32
;
174 CARD32 ddxDriverPatchVersion B32
;
175 CARD32 clientDriverNameLength B32
;
178 } xXF86DRIGetClientDriverNameReply
;
179 #define sz_xXF86DRIGetClientDriverNameReply 32
181 typedef struct _XF86DRICreateContext
{
182 CARD8 reqType
; /* always DRIReqCode */
183 CARD8 driReqType
; /* always X_DRICreateContext */
188 } xXF86DRICreateContextReq
;
189 #define sz_xXF86DRICreateContextReq 16
192 BYTE type
; /* X_Reply */
194 CARD16 sequenceNumber B16
;
196 CARD32 hHWContext B32
;
202 } xXF86DRICreateContextReply
;
203 #define sz_xXF86DRICreateContextReply 32
205 typedef struct _XF86DRIDestroyContext
{
206 CARD8 reqType
; /* always DRIReqCode */
207 CARD8 driReqType
; /* always X_DRIDestroyContext */
211 } xXF86DRIDestroyContextReq
;
212 #define sz_xXF86DRIDestroyContextReq 12
214 typedef struct _XF86DRICreateDrawable
{
215 CARD8 reqType
; /* always DRIReqCode */
216 CARD8 driReqType
; /* always X_DRICreateDrawable */
220 } xXF86DRICreateDrawableReq
;
221 #define sz_xXF86DRICreateDrawableReq 12
224 BYTE type
; /* X_Reply */
226 CARD16 sequenceNumber B16
;
228 CARD32 hHWDrawable B32
;
234 } xXF86DRICreateDrawableReply
;
235 #define sz_xXF86DRICreateDrawableReply 32
237 typedef struct _XF86DRIDestroyDrawable
{
238 CARD8 reqType
; /* always DRIReqCode */
239 CARD8 driReqType
; /* always X_DRIDestroyDrawable */
243 } xXF86DRIDestroyDrawableReq
;
244 #define sz_xXF86DRIDestroyDrawableReq 12
246 typedef struct _XF86DRIGetDrawableInfo
{
247 CARD8 reqType
; /* always DRIReqCode */
248 CARD8 driReqType
; /* always X_DRIGetDrawableInfo */
252 } xXF86DRIGetDrawableInfoReq
;
253 #define sz_xXF86DRIGetDrawableInfoReq 12
256 BYTE type
; /* X_Reply */
258 CARD16 sequenceNumber B16
;
260 CARD32 drawableTableIndex B32
;
261 CARD32 drawableTableStamp B32
;
264 INT16 drawableWidth B16
;
265 INT16 drawableHeight B16
;
266 CARD32 numClipRects B32
;
269 CARD32 numBackClipRects B32
;
270 } xXF86DRIGetDrawableInfoReply
;
272 #define sz_xXF86DRIGetDrawableInfoReply 36
275 typedef struct _XF86DRIGetDeviceInfo
{
276 CARD8 reqType
; /* always DRIReqCode */
277 CARD8 driReqType
; /* always X_DRIGetDeviceInfo */
280 } xXF86DRIGetDeviceInfoReq
;
281 #define sz_xXF86DRIGetDeviceInfoReq 8
284 BYTE type
; /* X_Reply */
286 CARD16 sequenceNumber B16
;
288 CARD32 hFrameBufferLow B32
;
289 CARD32 hFrameBufferHigh B32
;
290 CARD32 framebufferOrigin B32
;
291 CARD32 framebufferSize B32
;
292 CARD32 framebufferStride B32
;
293 CARD32 devPrivateSize B32
;
294 } xXF86DRIGetDeviceInfoReply
;
295 #define sz_xXF86DRIGetDeviceInfoReply 32
297 typedef struct _XF86DRIOpenFullScreen
{
298 CARD8 reqType
; /* always DRIReqCode */
299 CARD8 driReqType
; /* always X_DRIOpenFullScreen */
303 } xXF86DRIOpenFullScreenReq
;
304 #define sz_xXF86DRIOpenFullScreenReq 12
309 CARD16 sequenceNumber B16
;
311 CARD32 isFullScreen B32
;
317 } xXF86DRIOpenFullScreenReply
;
318 #define sz_xXF86DRIOpenFullScreenReply 32
320 typedef struct _XF86DRICloseFullScreen
{
321 CARD8 reqType
; /* always DRIReqCode */
322 CARD8 driReqType
; /* always X_DRICloseFullScreen */
326 } xXF86DRICloseFullScreenReq
;
327 #define sz_xXF86DRICloseFullScreenReq 12
332 CARD16 sequenceNumber B16
;
340 } xXF86DRICloseFullScreenReply
;
341 #define sz_xXF86DRICloseFullScreenReply 32
344 #endif /* _XF86DRISTR_H_ */