summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/unichrome/via_context.h
diff options
context:
space:
mode:
authorThomas Hellström <thomas@tungstengraphics.com>2004-12-15 21:59:25 +0000
committerThomas Hellström <thomas@tungstengraphics.com>2004-12-15 21:59:25 +0000
commit20456d6a3d18970988eedc1ab84ccde13d1ce900 (patch)
treeac22a574bd4360928adc351f193c51440271d339 /src/mesa/drivers/dri/unichrome/via_context.h
parentb4f58e99ebfa7d746781b992aca8189821fb26b0 (diff)
Unichrome DRI:
Updated the driver to the new VIA security mechanisms in DRM. All command submissions now passes through DRM ioctls. If the DRM AGP ring-buffer is not enabled, it will use a DRM mechanism for submitting commands to the hardware via a PCI bus mechanism. Removed all direct write accesses to the hardware. Among other things the VQ was previously turned off for the PCI path, apparently for Tuxracer. That seemed unneeded and was removed. No visible impact on Tuxracer. Abstracted all buffer blit operations in via_ioctl.c. The blitter context is now reprogrammed before each blitting operation. Updated driver date and drm version requirement. (Bugzilla Bug #1950, Thomas Hellström)
Diffstat (limited to 'src/mesa/drivers/dri/unichrome/via_context.h')
-rw-r--r--src/mesa/drivers/dri/unichrome/via_context.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/mesa/drivers/dri/unichrome/via_context.h b/src/mesa/drivers/dri/unichrome/via_context.h
index 5b2855a834..d0a96581e4 100644
--- a/src/mesa/drivers/dri/unichrome/via_context.h
+++ b/src/mesa/drivers/dri/unichrome/via_context.h
@@ -70,6 +70,8 @@ typedef struct via_texture_object_t *viaTextureObjectPtr;
#define VIA_UPLOAD_ENABLE 0x0800
#define VIA_UPLOAD_ALL 0x1000
+#define VIA_DMA_BUFSIZ 500000
+
/* Use the templated vertex formats:
*/
#define TAG(x) via##x
@@ -99,13 +101,6 @@ typedef struct {
char *map;
} viaBuffer, *viaBufferPtr;
-typedef struct {
- drm_handle_t handle;
- drmSize size;
- GLuint offset;
- GLuint index;
- unsigned char* map;
-} viaDmaBuffer, *viaDmaBufferPtr;
struct via_context_t {
GLint refcount;
@@ -121,7 +116,7 @@ struct via_context_t {
GLboolean hasAccum;
GLuint depthBits;
GLuint stencilBits;
- viaDmaBuffer dma[2];
+ GLuint *dma;
viaRegion tex;
GLuint isAGP;
@@ -157,7 +152,6 @@ struct via_context_t {
/* drmBufPtr dma_buffer;
*/
unsigned char* dmaAddr;
- GLuint dmaIndex;
GLuint dmaLow;
GLuint dmaHigh;
GLuint dmaLastPrim;
@@ -297,8 +291,6 @@ struct via_context_t {
volatile GLuint* regTranSpace;
GLuint* agpBase;
GLuint drawType;
- /*=* John Sheng [2003.12.9] Tuxracer & VQ *=*/
- int VQEnable;
};
/*#define DMA_OFFSET 16*/
#define DMA_OFFSET 32