pipebuffer: slab: if size < alignment, use alignment to find bucket
authorLuca Barbieri <luca@luca-barbieri.com>
Tue, 23 Feb 2010 16:55:24 +0000 (08:55 -0800)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 23 Feb 2010 19:50:24 +0000 (19:50 +0000)
commit2f5beb4b530d47d6b4a7cf0effeaec0d2c1b6ea4
tree307c8c028ec31556434797fa9593f0623b63ad87
parentc36b912e09a12b60d26fd1ebe0939b457514d800
pipebuffer: slab: if size < alignment, use alignment to find bucket

If the size is lower than the alignment, we must use the alignment to
select the bucket.

Otherwise, the selected bucket won't be able to satisfy our request
and will fail.

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