projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ef377d
)
pipebuffer: Don't retry to alloc memory block on mm.
author
José Fonseca
<jfonseca@vmware.com>
Wed, 18 Feb 2009 10:25:04 +0000
(10:25 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Wed, 18 Feb 2009 10:25:04 +0000
(10:25 +0000)
It will give the same result 2nd time too, as fencing is done at a
higher level.
src/gallium/auxiliary/pipebuffer/pb_bufmgr_mm.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_mm.c
b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_mm.c
index fe80ca30eea9eb95bdb81a0d91f41e49553aa664..37984e7b7be124b21beecb531559fd70fc5345c2 100644
(file)
--- 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 */