1 /* $XFree86: xc/lib/GL/mesa/src/drv/r128/r128_screen.h,v 1.7 2002/12/16 16:18:53 dawes Exp $ */
2 /**************************************************************************
4 Copyright 1999, 2000 ATI Technologies Inc. and Precision Insight, Inc.,
8 Permission is hereby granted, free of charge, to any person obtaining a
9 copy of this software and associated documentation files (the "Software"),
10 to deal in the Software without restriction, including without limitation
11 on the rights to use, copy, modify, merge, publish, distribute, sub
12 license, and/or sell copies of the Software, and to permit persons to whom
13 the Software is furnished to do so, subject to the following conditions:
15 The above copyright notice and this permission notice (including the next
16 paragraph) shall be included in all copies or substantial portions of the
19 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
22 ATI, PRECISION INSIGHT AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM,
23 DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
24 OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
25 USE OR OTHER DEALINGS IN THE SOFTWARE.
27 **************************************************************************/
31 * Gareth Hughes <gareth@valinux.com>
32 * Kevin E. Martin <martin@valinux.com>
36 #ifndef __R128_SCREEN_H__
37 #define __R128_SCREEN_H__
39 #ifdef GLX_DIRECT_RENDERING
41 #include "xmlconfig.h"
44 drm_handle_t handle
; /* Handle to the DRM region */
45 drmSize size
; /* Size of the DRM region */
46 unsigned char *map
; /* Mapping of the DRM region */
47 } r128RegionRec
, *r128RegionPtr
;
53 GLint IsPCI
; /* Current card is a PCI card */
55 unsigned int irq
; /* IRQ number (0 means none) */
66 /* Shared texture data */
68 GLint texOffset
[R128_NR_TEX_HEAPS
];
69 GLint texSize
[R128_NR_TEX_HEAPS
];
70 GLint logTexGranularity
[R128_NR_TEX_HEAPS
];
73 r128RegionRec agpTextures
;
77 __DRIscreenPrivate
*driScreen
;
78 unsigned int sarea_priv_offset
;
80 /* Configuration cache with default values for all contexts */
81 driOptionCache optionCache
;
83 } r128ScreenRec
, *r128ScreenPtr
;
87 #endif /* __R128_SCREEN_H__ */