diff options
author | José Fonseca <jfonseca@vmware.com> | 2009-02-18 10:25:04 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2009-02-18 10:25:04 +0000 |
commit | c7431552c0ff203cd4b3ae37751b10e6111e4167 (patch) | |
tree | c2be3f3e312f54fec4fe348f9cfac81ec5b9dfc8 /src/gallium/auxiliary/pipebuffer | |
parent | 8ef377d76b721f2f62ca30a073fcfd312c155e95 (diff) |
pipebuffer: Don't retry to alloc memory block on mm.
It will give the same result 2nd time too, as fencing is done at a
higher level.
Diffstat (limited to 'src/gallium/auxiliary/pipebuffer')
-rw-r--r-- | src/gallium/auxiliary/pipebuffer/pb_bufmgr_mm.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_mm.c b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_mm.c index fe80ca30ee..37984e7b7b 100644 --- a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_mm.c +++ b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_mm.c @@ -181,13 +181,9 @@ mm_bufmgr_create_buffer(struct pb_manager *mgr, #if 0 mmDumpMemInfo(mm->heap); #endif - - mm_buf->block = mmAllocMem(mm->heap, size, mm->align2, 0); - if(!mm_buf->block) { - FREE(mm_buf); - pipe_mutex_unlock(mm->mutex); - return NULL; - } + FREE(mm_buf); + pipe_mutex_unlock(mm->mutex); + return NULL; } /* Some sanity checks */ |