From: José Fonseca Date: Mon, 26 May 2008 15:13:57 +0000 (+0900) Subject: pipebuffer: Allow slab allocations of buffers of inequal size. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a0e2955a16a8a04afe7f84b1c8551211542a6fbd;p=mesa.git pipebuffer: Allow slab allocations of buffers of inequal size. --- diff --git a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c index 45ba158a4d9..b9dff09804c 100644 --- a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c +++ b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c @@ -312,8 +312,8 @@ pb_slab_manager_create_buffer(struct pb_manager *_mgr, struct list_head *list; /* check size */ - assert(size == mgr->bufSize); - if(size != mgr->bufSize) + assert(size <= mgr->bufSize); + if(size > mgr->bufSize) return NULL; /* check if we can provide the requested alignment */