diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-11-22 02:46:43 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-11-22 02:46:43 +0000 |
commit | 98de1de8ddad1d22b4447d94745e4de28a6a8e99 (patch) | |
tree | 54c237339a149068283cea45f3dbf821edb57cd4 /lib/mesa/src/gallium/auxiliary/pipebuffer | |
parent | 4aae075c7789b61a4979f9841cf562a7bb2e6318 (diff) |
import Mesa 11.0.6
Diffstat (limited to 'lib/mesa/src/gallium/auxiliary/pipebuffer')
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/mesa/src/gallium/auxiliary/pipebuffer/pb_buffer_malloc.c b/lib/mesa/src/gallium/auxiliary/pipebuffer/pb_buffer_malloc.c index ea2f2fa10..b97771457 100644 --- a/lib/mesa/src/gallium/auxiliary/pipebuffer/pb_buffer_malloc.c +++ b/lib/mesa/src/gallium/auxiliary/pipebuffer/pb_buffer_malloc.c @@ -132,7 +132,7 @@ pb_malloc_buffer_create(pb_size size, /* TODO: do a single allocation */ buf = CALLOC_STRUCT(malloc_buffer); - if (!buf) + if(!buf) return NULL; pipe_reference_init(&buf->base.reference, 1); diff --git a/lib/mesa/src/gallium/auxiliary/pipebuffer/pb_bufmgr_alt.c b/lib/mesa/src/gallium/auxiliary/pipebuffer/pb_bufmgr_alt.c index f71bacc88..47cbaeb20 100644 --- a/lib/mesa/src/gallium/auxiliary/pipebuffer/pb_bufmgr_alt.c +++ b/lib/mesa/src/gallium/auxiliary/pipebuffer/pb_bufmgr_alt.c @@ -67,7 +67,7 @@ pb_alt_manager_create_buffer(struct pb_manager *_mgr, struct pb_buffer *buf; buf = mgr->provider1->create_buffer(mgr->provider1, size, desc); - if (buf) + if(buf) return buf; buf = mgr->provider2->create_buffer(mgr->provider2, size, desc); diff --git a/lib/mesa/src/gallium/auxiliary/pipebuffer/pb_bufmgr_ondemand.c b/lib/mesa/src/gallium/auxiliary/pipebuffer/pb_bufmgr_ondemand.c index 4885d68c3..c20e2dca0 100644 --- a/lib/mesa/src/gallium/auxiliary/pipebuffer/pb_bufmgr_ondemand.c +++ b/lib/mesa/src/gallium/auxiliary/pipebuffer/pb_bufmgr_ondemand.c @@ -151,7 +151,7 @@ pb_ondemand_buffer_instantiate(struct pb_ondemand_buffer *buf) return PIPE_ERROR_OUT_OF_MEMORY; map = pb_map(buf->buffer, PB_USAGE_CPU_READ, NULL); - if (!map) { + if(!map) { pb_reference(&buf->buffer, NULL); return PIPE_ERROR; } @@ -241,7 +241,7 @@ pb_ondemand_manager_create_buffer(struct pb_manager *_mgr, struct pb_ondemand_buffer *buf; buf = CALLOC_STRUCT(pb_ondemand_buffer); - if (!buf) + if(!buf) return NULL; pipe_reference_init(&buf->base.reference, 1); @@ -288,11 +288,11 @@ pb_ondemand_manager_create(struct pb_manager *provider) { struct pb_ondemand_manager *mgr; - if (!provider) + if(!provider) return NULL; mgr = CALLOC_STRUCT(pb_ondemand_manager); - if (!mgr) + if(!mgr) return NULL; mgr->base.destroy = pb_ondemand_manager_destroy; |