Mesa (master): pb: fix numDelayed accounting
Dave Airlie
airlied at kemper.freedesktop.org
Tue Oct 5 09:13:50 UTC 2010
Module: Mesa
Branch: master
Commit: bf21b7006c63c3dc47045c22d4f372dfe6c7ce67
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bf21b7006c63c3dc47045c22d4f372dfe6c7ce67
Author: Dave Airlie <airlied at redhat.com>
Date: Tue Oct 5 19:08:41 2010 +1000
pb: fix numDelayed accounting
we weren't decreasing when removing from the list.
---
src/gallium/auxiliary/pipebuffer/pb_bufmgr_cache.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_cache.c b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_cache.c
index 52e626c..a6eb403 100644
--- a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_cache.c
+++ b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_cache.c
@@ -307,6 +307,7 @@ pb_cache_manager_create_buffer(struct pb_manager *_mgr,
if(buf) {
LIST_DEL(&buf->head);
+ --mgr->numDelayed;
pipe_mutex_unlock(mgr->mutex);
/* Increase refcount */
pipe_reference_init(&buf->base.base.reference, 1);
More information about the mesa-commit
mailing list