Mesa (master): radeon: balance dma buffer mapping
Alex Deucher
agd5f at kemper.freedesktop.org
Tue Aug 18 18:32:58 UTC 2009
Module: Mesa
Branch: master
Commit: f9b8562f32b77a27c872d4c70a86995032541107
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f9b8562f32b77a27c872d4c70a86995032541107
Author: Pauli Nieminen <suokkos at gmail.com>
Date: Tue Aug 18 14:30:51 2009 -0400
radeon: balance dma buffer mapping
In radeonRefillCurrentDmaRegion() make sure we
unmap the previous buffer.
---
src/mesa/drivers/dri/radeon/radeon_dma.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/mesa/drivers/dri/radeon/radeon_dma.c b/src/mesa/drivers/dri/radeon/radeon_dma.c
index b2376ea..3019184 100644
--- a/src/mesa/drivers/dri/radeon/radeon_dma.c
+++ b/src/mesa/drivers/dri/radeon/radeon_dma.c
@@ -180,6 +180,10 @@ void radeonRefillCurrentDmaRegion(radeonContextPtr rmesa, int size)
rmesa->dma.flush(rmesa->glCtx);
}
+ /* unmap old reserved bo */
+ if (!is_empty_list(&rmesa->dma.reserved))
+ radeon_bo_unmap(first_elem(&rmesa->dma.reserved)->bo);
+
if (is_empty_list(&rmesa->dma.free)) {
struct radeon_dma_bo *dma_bo = CALLOC(sizeof(struct radeon_dma_bo));
assert(dma_bo);
More information about the mesa-commit
mailing list