projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37406c2
)
[intel] assert that buffers are not mapped at last unreference.
author
Eric Anholt
<eric@anholt.net>
Thu, 13 Dec 2007 09:01:31 +0000
(
01:01
-0800)
committer
Eric Anholt
<eric@anholt.net>
Fri, 14 Dec 2007 07:24:53 +0000
(23:24 -0800)
bufmgr_fake doesn't care about it, but with ttm we would end up with the
buffer remaining referenced until application exit.
src/mesa/drivers/dri/common/dri_bufmgr_fake.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/common/dri_bufmgr_fake.c
b/src/mesa/drivers/dri/common/dri_bufmgr_fake.c
index 5cd96f0821d01da0eab967964f394c233c2b3230..f022552ed8566ccefee8f2c5544f8897b86d5494 100644
(file)
--- a/
src/mesa/drivers/dri/common/dri_bufmgr_fake.c
+++ b/
src/mesa/drivers/dri/common/dri_bufmgr_fake.c
@@
-665,6
+665,7
@@
dri_fake_bo_unreference(dri_bo *bo)
_glthread_LOCK_MUTEX(bufmgr_fake->mutex);
if (--bo_fake->refcount == 0) {
+ assert(bo_fake->map_count == 0);
/* No remaining references, so free it */
if (bo_fake->block)
free_block(bufmgr_fake, bo_fake->block);