summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/unichrome/via_render.c
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_render.c
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_render.c')
-rw-r--r--src/mesa/drivers/dri/unichrome/via_render.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/unichrome/via_render.c b/src/mesa/drivers/dri/unichrome/via_render.c
index 210248ff4b..9a97eeca80 100644
--- a/src/mesa/drivers/dri/unichrome/via_render.c
+++ b/src/mesa/drivers/dri/unichrome/via_render.c
@@ -179,7 +179,7 @@ static GLboolean via_run_fastrender(GLcontext *ctx,
tnl->Driver.Render.Finish(ctx);
/*=* DBG - viewperf7.0 : fix command buffer overflow *=*/
- if (vmesa->dmaLow > (vmesa->dma[0].size / 2))
+ if (vmesa->dmaLow > (VIA_DMA_BUFSIZ / 2))
viaFlushPrims(vmesa);
#ifdef DEBUG
if (VIA_DEBUG) fprintf(stderr, "%s - out\n", __FUNCTION__);
@@ -468,7 +468,7 @@ static GLboolean via_run_render(GLcontext *ctx,
}*/
/*=* DBG viewperf7.0 : fix command buffer overflow *=*/
- if (vmesa->dmaLow > (vmesa->dma[0].size / 2))
+ if (vmesa->dmaLow > (VIA_DMA_BUFSIZ / 2))
viaFlushPrims(vmesa);
#ifdef DEBUG
if (VIA_DEBUG) fprintf(stderr, "%s - out\n", __FUNCTION__);