summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/trace/tr_texture.c
diff options
context:
space:
mode:
authorEdward O'Callaghan <[email protected]>2015-12-04 16:47:56 +1100
committerMarek Olšák <[email protected]>2015-12-06 17:10:22 +0100
commit25b3d554c4403b3b63f58cea6f0fc0cf3232a1c0 (patch)
treed74b0ff17a352230911b0ed9298055ef04fd633c /src/gallium/drivers/trace/tr_texture.c
parent34782eec31d66e6392390fdf47b1860af08bcde6 (diff)
gallium/drivers: Trivial code-style cleanup
Signed-off-by: Edward O'Callaghan <[email protected]> Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/trace/tr_texture.c')
-rw-r--r--src/gallium/drivers/trace/tr_texture.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/drivers/trace/tr_texture.c b/src/gallium/drivers/trace/tr_texture.c
index ebc47870622..47845a35a64 100644
--- a/src/gallium/drivers/trace/tr_texture.c
+++ b/src/gallium/drivers/trace/tr_texture.c
@@ -41,13 +41,13 @@ trace_resource_create(struct trace_screen *tr_scr,
{
struct trace_resource *tr_res;
- if(!texture)
+ if (!texture)
goto error;
assert(texture->screen == tr_scr->screen);
tr_res = CALLOC_STRUCT(trace_resource);
- if(!tr_res)
+ if (!tr_res)
goto error;
memcpy(&tr_res->base, texture, sizeof(struct pipe_resource));
@@ -80,13 +80,13 @@ trace_surf_create(struct trace_context *tr_ctx,
{
struct trace_surface *tr_surf;
- if(!surface)
+ if (!surface)
goto error;
assert(surface->texture == tr_res->resource);
tr_surf = CALLOC_STRUCT(trace_surface);
- if(!tr_surf)
+ if (!tr_surf)
goto error;
memcpy(&tr_surf->base, surface, sizeof(struct pipe_surface));
@@ -122,13 +122,13 @@ trace_transfer_create(struct trace_context *tr_ctx,
{
struct trace_transfer *tr_trans;
- if(!transfer)
+ if (!transfer)
goto error;
assert(transfer->resource == tr_res->resource);
tr_trans = CALLOC_STRUCT(trace_transfer);
- if(!tr_trans)
+ if (!tr_trans)
goto error;
memcpy(&tr_trans->base, transfer, sizeof(struct pipe_transfer));