From e3fe80a60f36fad8f12220ba435bfecc8685c264 Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Wed, 5 Jan 2005 13:45:09 +0000 Subject: Bring VIA driver up-to-date with regard to drm_*_t changes and remove the xf86drmVIA.[ch] files. Bring in the IRQ handler and Ring buffer code, but ring buffer is disabled as it is with the Xserver. It certainly locks up the CLE266. --- src/mesa/drivers/dri/unichrome/via_fb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mesa/drivers/dri/unichrome/via_fb.c') diff --git a/src/mesa/drivers/dri/unichrome/via_fb.c b/src/mesa/drivers/dri/unichrome/via_fb.c index 39d43e72784..122d3b17cc7 100644 --- a/src/mesa/drivers/dri/unichrome/via_fb.c +++ b/src/mesa/drivers/dri/unichrome/via_fb.c @@ -66,7 +66,7 @@ via_free_draw_buffer(viaContextPtr vmesa, viaBuffer *buf) GLboolean via_alloc_dma_buffer(viaContextPtr vmesa) { - drmVIADMAInit init; + drm_via_dma_init_t init; if (VIA_DEBUG) fprintf(stderr, "%s - in\n", __FUNCTION__); vmesa->dma = (GLubyte *) malloc(VIA_DMA_BUFSIZ); @@ -76,7 +76,7 @@ via_alloc_dma_buffer(viaContextPtr vmesa) */ init.func = VIA_DMA_INITIALIZED; vmesa->useAgp = - ( 0 == drmCommandWrite(vmesa->driFd, DRM_VIA_DMA_INIT, + ( 0 == drmCommandWrite(vmesa->driFd, VIA_INIT_DMA, &init, sizeof(init))); if (vmesa->useAgp) printf("unichrome_dri.so: Using AGP.\n"); -- cgit v1.2.3