OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
657109b
)
radeon: balance dma buffer mapping
author
Pauli Nieminen
<suokkos@gmail.com>
Tue, 18 Aug 2009 18:30:51 +0000
(14:30 -0400)
committer
Alex Deucher
<alexdeucher@gmail.com>
Tue, 18 Aug 2009 18:32:45 +0000
(14:32 -0400)
In radeonRefillCurrentDmaRegion() make sure we
unmap the previous buffer.
src/mesa/drivers/dri/radeon/radeon_dma.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/radeon/radeon_dma.c
b/src/mesa/drivers/dri/radeon/radeon_dma.c
index
b2376ea
..
3019184
100644
(file)
--- 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);