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.
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user