pipebuffer: avoid assert due to increasing a zeroed refcnt
authorLuca Barbieri <luca@luca-barbieri.com>
Tue, 23 Feb 2010 16:50:15 +0000 (08:50 -0800)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 23 Feb 2010 19:50:24 +0000 (19:50 +0000)
commit9f4f87893b4d3555204a1a66d108f8f9185e3d14
treed818c52627cb4426510c8ad1be6bbee09d89fdd0
parentc41cf31da8e2b57ea9911ed1720650cfc2649a84
pipebuffer: avoid assert due to increasing a zeroed refcnt

The cache manager stores buffers with a reference count that dropped to 0.
pipe_reference asserts in this case on debug builds,
so use pipe_reference_init instead.

Signed-off-by: José Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/pipebuffer/pb_bufmgr_cache.c