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:
ba48e78
)
radeon: Add comment to explain logic for freeing dma buffers.
author
Pauli Nieminen
<suokkos@gmail.com>
Thu, 20 Aug 2009 15:57:35 +0000
(18:57 +0300)
committer
Pauli Nieminen
<suokkos@gmail.com>
Fri, 21 Aug 2009 13:40:14 +0000
(16:40 +0300)
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
40082d0
..
7e6b74a
100644
(file)
--- a/
src/mesa/drivers/dri/radeon/radeon_dma.c
+++ b/
src/mesa/drivers/dri/radeon/radeon_dma.c
@@
-204,6
+204,9
@@
again_alloc:
}
insert_at_head(&rmesa->dma.reserved, dma_bo);
} else {
+ /* We push and pop buffers from end of list so we can keep
+ counter on unused buffers for later freeing them from
+ begin of list */
struct radeon_dma_bo *dma_bo = last_elem(&rmesa->dma.free);
assert(dma_bo->bo->cref == 1);
remove_from_list(dma_bo);