diff options
author | Thomas Hellström <thomas@tungstengraphics.com> | 2005-01-06 13:51:37 +0000 |
---|---|---|
committer | Thomas Hellström <thomas@tungstengraphics.com> | 2005-01-06 13:51:37 +0000 |
commit | 4c1d373ce17ad0831a986c9e88f65425e5dab4f4 (patch) | |
tree | a30296ffc0cd3d7b883745c3a3bec88d91b11309 /src/mesa/drivers/dri/unichrome/via_fb.c | |
parent | dd1ef7c0d78fdb2dd6587c87394680c6e8c79648 (diff) |
Small Unichrome fixes:
1. Unlock hardware before aborting and dumping DMA buffers. Otherwise display system may deadlock.
2. Fix DMA init IOCTL call that got mixed up in one of the previous commits.
3. Fix AGP command alignment
Diffstat (limited to 'src/mesa/drivers/dri/unichrome/via_fb.c')
-rw-r--r-- | src/mesa/drivers/dri/unichrome/via_fb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/unichrome/via_fb.c b/src/mesa/drivers/dri/unichrome/via_fb.c index 122d3b17cc..241bf0b9a3 100644 --- a/src/mesa/drivers/dri/unichrome/via_fb.c +++ b/src/mesa/drivers/dri/unichrome/via_fb.c @@ -76,7 +76,7 @@ via_alloc_dma_buffer(viaContextPtr vmesa) */ init.func = VIA_DMA_INITIALIZED; vmesa->useAgp = - ( 0 == drmCommandWrite(vmesa->driFd, VIA_INIT_DMA, + ( 0 == drmCommandWrite(vmesa->driFd, DRM_VIA_DMA_INIT, &init, sizeof(init))); if (vmesa->useAgp) printf("unichrome_dri.so: Using AGP.\n"); |