summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-05-27 00:13:57 +0900
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-05-27 00:13:57 +0900
commita0e2955a16a8a04afe7f84b1c8551211542a6fbd (patch)
tree7cf02e69a6469b1f96c466d06293f5d69d1e820d /src/gallium
parentc428997a521475c46ccd1df4e8ed8ccc6c4f8d61 (diff)
pipebuffer: Allow slab allocations of buffers of inequal size.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c4
1 files changed, 2 insertions, 2 deletions
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 */