pipebuffer: Allow slab allocations of buffers of inequal size.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Mon, 26 May 2008 15:13:57 +0000 (00:13 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Mon, 26 May 2008 15:13:57 +0000 (00:13 +0900)
src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c

index 45ba158a4d98f2c01686d78e7c267d7a71c9bc14..b9dff09804cae874c157c608786683c181527157 100644 (file)
@@ -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 */