From: Dave Airlie Date: Tue, 5 Oct 2010 09:08:41 +0000 (+1000) Subject: pb: fix numDelayed accounting X-Git-Tag: 062012170305~9444^2~353 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bf21b7006c63c3dc47045c22d4f372dfe6c7ce67;p=profile%2Fivi%2Fmesa.git pb: fix numDelayed accounting we weren't decreasing when removing from the list. --- 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);