diff options
author | Pauli Nieminen <[email protected]> | 2009-08-20 18:57:35 +0300 |
---|---|---|
committer | Pauli Nieminen <[email protected]> | 2009-08-21 16:40:14 +0300 |
commit | 0c0cea250d6615bbd500ac0b61b5d34bc61711cf (patch) | |
tree | 73a234c713c04ec27418479b24aa7696684f07ca /src/mesa/drivers/dri/radeon | |
parent | ba48e78b1f7cf307d505583f758c65b158f5aae0 (diff) |
radeon: Add comment to explain logic for freeing dma buffers.
Diffstat (limited to 'src/mesa/drivers/dri/radeon')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_dma.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_dma.c b/src/mesa/drivers/dri/radeon/radeon_dma.c index 40082d0798f..7e6b74add86 100644 --- 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); |