summaryrefslogtreecommitdiff
path: root/xc/lib/GL/mesa/src/drv/r128/r128_screen.h
diff options
context:
space:
mode:
authordawes <dawes>2001-03-19 17:45:15 +0000
committerdawes <dawes>2001-03-19 17:45:15 +0000
commit7bf7bda7738b2029bc71015f9ea08304c15e7240 (patch)
tree95c06cadb9f7fdb6d456eafb2cb015653c617724 /xc/lib/GL/mesa/src/drv/r128/r128_screen.h
parent856c96701fa6c514447af12b4b881f762e59767c (diff)
Import of XFree86 4.0.99.1X_4_0_99_1
Diffstat (limited to 'xc/lib/GL/mesa/src/drv/r128/r128_screen.h')
-rw-r--r--xc/lib/GL/mesa/src/drv/r128/r128_screen.h114
1 files changed, 37 insertions, 77 deletions
diff --git a/xc/lib/GL/mesa/src/drv/r128/r128_screen.h b/xc/lib/GL/mesa/src/drv/r128/r128_screen.h
index 4fd6b7ac7..82e8dda81 100644
--- a/xc/lib/GL/mesa/src/drv/r128/r128_screen.h
+++ b/xc/lib/GL/mesa/src/drv/r128/r128_screen.h
@@ -1,4 +1,4 @@
-/* $XFree86: xc/lib/GL/mesa/src/drv/r128/r128_screen.h,v 1.3 2000/12/04 19:21:47 dawes Exp $ */
+/* $XFree86: xc/lib/GL/mesa/src/drv/r128/r128_screen.h,v 1.4 2001/01/08 01:07:21 martin Exp $ */
/**************************************************************************
Copyright 1999, 2000 ATI Technologies Inc. and Precision Insight, Inc.,
@@ -28,98 +28,58 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
/*
* Authors:
- * Kevin E. Martin <martin@valinux.com>
* Gareth Hughes <gareth@valinux.com>
+ * Kevin E. Martin <martin@valinux.com>
*
*/
-#ifndef _R128_SCREEN_H_
-#define _R128_SCREEN_H_
+#ifndef __R128_SCREEN_H__
+#define __R128_SCREEN_H__
#ifdef GLX_DIRECT_RENDERING
#include "r128_sarea.h"
typedef struct {
- drmHandle handle; /* Handle to the DRM region */
- drmSize size; /* Size of the DRM region */
+ drmHandle handle; /* Handle to the DRM region */
+ drmSize size; /* Size of the DRM region */
+ unsigned char *map; /* Mapping of the DRM region */
} r128RegionRec, *r128RegionPtr;
typedef struct {
- /* MMIO register data */
- r128RegionRec mmioRgn;
- unsigned char *mmio;
-
- /* CCE ring buffer data */
- r128RegionRec ringRgn;
- unsigned char *ring;
-
- /* CCE ring read pointer data */
- r128RegionRec ringReadRgn;
-
- /* CCE vertex/indirect buffer data */
- r128RegionRec bufRgn;
- unsigned char *buf;
- int bufOffset;
- int bufMapSize;
- drmBufMapPtr buffers;
-
- /* CCE AGP Texture data */
- r128RegionRec agpTexRgn;
- unsigned char *agpTex;
- int agpTexOffset;
-
- /* Frame buffer data */
- unsigned char *fb;
- unsigned long fbOffset;
- int fbStride;
- int fbSize;
-
- unsigned int frontX, frontY; /* Start of front buffer */
- unsigned int frontOffset, frontPitch;
- unsigned int backX, backY; /* Start of shared back buffer */
- unsigned int backOffset, backPitch;
- unsigned int depthX, depthY; /* Start of shared depth buffer */
- unsigned int depthOffset, depthPitch;
- unsigned int spanOffset;
-
- int chipset;
- int IsPCI; /* Current card is a PCI card */
- int AGPMode;
-
- int CCEMode; /* CCE mode that server/clients use */
- int CCEFifoSize; /* Size of the CCE command FIFO */
-
- /* CCE ring buffer data */
- int ringEntries;
-
- volatile int *ringReadPtr; /* Pointer to current read addr */
- int *ringStartPtr; /* Pointer to end of ring buffer */
- int *ringEndPtr; /* Pointer to end of ring buffer */
-
- /* DRI screen private data */
- int deviceID; /* PCI device ID */
- int depth; /* Depth of display (8, 15, 16, 24) */
- int bpp; /* Bit depth of disp (8, 16, 24, 32) */
- int pixel_code; /* 8, 15, 16, 24, 32 */
+
+ GLint chipset;
+ GLint cpp;
+ GLint IsPCI; /* Current card is a PCI card */
+ GLint AGPMode;
+
+ GLuint frontOffset;
+ GLuint frontPitch;
+ GLuint backOffset;
+ GLuint backPitch;
+
+ GLuint depthOffset;
+ GLuint depthPitch;
+ GLuint spanOffset;
/* Shared texture data */
- int NRTexHeaps;
- int texOffset[R128_NR_TEX_HEAPS];
- int texSize[R128_NR_TEX_HEAPS];
- int log2TexGran[R128_NR_TEX_HEAPS];
-
- int MMIOFifoSlots; /* Free slots in the FIFO (64 max) */
- int CCEFifoSlots; /* Free slots in the CCE FIFO */
-
- int CCEFifoAddr; /* MMIO offset to write next CCE
- value (only used when CCE is
- in PIO mode). */
- __DRIscreenPrivate *driScreen;
+ GLint numTexHeaps;
+ GLint texOffset[R128_NR_TEX_HEAPS];
+ GLint texSize[R128_NR_TEX_HEAPS];
+ GLint logTexGranularity[R128_NR_TEX_HEAPS];
+
+ r128RegionRec mmio;
+ r128RegionRec agpTextures;
+
+ drmBufMapPtr buffers;
+
+ __DRIscreenPrivate *driScreen;
+
} r128ScreenRec, *r128ScreenPtr;
-r128ScreenPtr r128CreateScreen(__DRIscreenPrivate *sPriv);
-void r128DestroyScreen(__DRIscreenPrivate *sPriv);
+
+extern r128ScreenPtr r128CreateScreen( __DRIscreenPrivate *sPriv );
+extern void r128DestroyScreen( __DRIscreenPrivate *sPriv );
#endif
-#endif /* _R128_SCREEN_H_ */
+#endif /* __R128_SCREEN_H__ */