diff options
author | Dave Airlie <[email protected]> | 2010-10-05 19:08:41 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2010-10-05 19:08:41 +1000 |
commit | bf21b7006c63c3dc47045c22d4f372dfe6c7ce67 (patch) | |
tree | 33b79948fe4037f4dd5bf90e2b84a73ff2bac614 | |
parent | 12be1568d0ad648930a2bb04a10b3181061fa468 (diff) |
pb: fix numDelayed accounting
we weren't decreasing when removing from the list.
-rw-r--r-- | 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 52e626cb44b..a6eb4039621 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); |