gallium: Do not assume that buffers are freed in the same order they are fenced.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Tue, 1 Apr 2008 01:41:43 +0000 (10:41 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Tue, 1 Apr 2008 01:46:04 +0000 (10:46 +0900)
commit686a6c746851b4bc2572aaa1153d570717bdd77f
tree139c727e88dfcf4ab4725b1359d934e8e86d32e6
parent14452aee73e16f2ede075cf894e69d62cc539f5e
gallium: Do not assume that buffers are freed in the same order they are fenced.

Also free buffers as soon as possible.

This short term fix corrects the fenced list behavior but it will impact on performance.
The long term fix is probably replace the linked list (legacy from the bufpool code) by
a binary tree.
src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c