summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/trace
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/trace')
-rw-r--r--src/gallium/drivers/trace/tr_context.c10
-rw-r--r--src/gallium/drivers/trace/tr_dump.c8
-rw-r--r--src/gallium/drivers/trace/tr_dump_state.c42
-rw-r--r--src/gallium/drivers/trace/tr_screen.c2
-rw-r--r--src/gallium/drivers/trace/tr_texture.c12
-rw-r--r--src/gallium/drivers/trace/tr_texture.h6
6 files changed, 40 insertions, 40 deletions
diff --git a/src/gallium/drivers/trace/tr_context.c b/src/gallium/drivers/trace/tr_context.c
index 7f6d0645112..d4c88c9be6d 100644
--- a/src/gallium/drivers/trace/tr_context.c
+++ b/src/gallium/drivers/trace/tr_context.c
@@ -72,7 +72,7 @@ trace_resource_unwrap(struct trace_context *tr_ctx,
{
struct trace_resource *tr_res;
- if(!resource)
+ if (!resource)
return NULL;
tr_res = trace_resource(resource);
@@ -89,7 +89,7 @@ trace_surface_unwrap(struct trace_context *tr_ctx,
struct trace_screen *tr_scr = trace_screen(tr_ctx->base.screen);
struct trace_surface *tr_surf;
- if(!surface)
+ if (!surface)
return NULL;
assert(surface->texture);
@@ -1284,7 +1284,7 @@ trace_context_flush(struct pipe_context *_pipe,
pipe->flush(pipe, fence, flags);
- if(fence)
+ if (fence)
trace_dump_ret(ptr, *fence);
trace_dump_call_end();
@@ -1539,14 +1539,14 @@ trace_context_create(struct trace_screen *tr_scr,
{
struct trace_context *tr_ctx;
- if(!pipe)
+ if (!pipe)
goto error1;
if(!trace_enabled())
goto error1;
tr_ctx = CALLOC_STRUCT(trace_context);
- if(!tr_ctx)
+ if (!tr_ctx)
goto error1;
tr_ctx->base.priv = pipe->priv; /* expose wrapped priv data */
diff --git a/src/gallium/drivers/trace/tr_dump.c b/src/gallium/drivers/trace/tr_dump.c
index 601e2cbbec5..b173b8abf89 100644
--- a/src/gallium/drivers/trace/tr_dump.c
+++ b/src/gallium/drivers/trace/tr_dump.c
@@ -218,7 +218,7 @@ trace_dump_tag_end(const char *name)
void
trace_dump_trace_flush(void)
{
- if(stream) {
+ if (stream) {
fflush(stream);
}
}
@@ -226,7 +226,7 @@ trace_dump_trace_flush(void)
static void
trace_dump_trace_close(void)
{
- if(stream) {
+ if (stream) {
trace_dump_writes("</trace>\n");
if (close_stream) {
fclose(stream);
@@ -257,10 +257,10 @@ trace_dump_trace_begin(void)
const char *filename;
filename = debug_get_option("GALLIUM_TRACE", NULL);
- if(!filename)
+ if (!filename)
return FALSE;
- if(!stream) {
+ if (!stream) {
if (strcmp(filename, "stderr") == 0) {
close_stream = FALSE;
diff --git a/src/gallium/drivers/trace/tr_dump_state.c b/src/gallium/drivers/trace/tr_dump_state.c
index 9bf4a722d80..54f022a8ab6 100644
--- a/src/gallium/drivers/trace/tr_dump_state.c
+++ b/src/gallium/drivers/trace/tr_dump_state.c
@@ -41,7 +41,7 @@ void trace_dump_resource_template(const struct pipe_resource *templat)
if (!trace_dumping_enabled_locked())
return;
- if(!templat) {
+ if (!templat) {
trace_dump_null();
return;
}
@@ -82,7 +82,7 @@ void trace_dump_box(const struct pipe_box *box)
if (!trace_dumping_enabled_locked())
return;
- if(!box) {
+ if (!box) {
trace_dump_null();
return;
}
@@ -105,7 +105,7 @@ void trace_dump_rasterizer_state(const struct pipe_rasterizer_state *state)
if (!trace_dumping_enabled_locked())
return;
- if(!state) {
+ if (!state) {
trace_dump_null();
return;
}
@@ -168,7 +168,7 @@ void trace_dump_poly_stipple(const struct pipe_poly_stipple *state)
if (!trace_dumping_enabled_locked())
return;
- if(!state) {
+ if (!state) {
trace_dump_null();
return;
}
@@ -190,7 +190,7 @@ void trace_dump_viewport_state(const struct pipe_viewport_state *state)
if (!trace_dumping_enabled_locked())
return;
- if(!state) {
+ if (!state) {
trace_dump_null();
return;
}
@@ -209,7 +209,7 @@ void trace_dump_scissor_state(const struct pipe_scissor_state *state)
if (!trace_dumping_enabled_locked())
return;
- if(!state) {
+ if (!state) {
trace_dump_null();
return;
}
@@ -232,7 +232,7 @@ void trace_dump_clip_state(const struct pipe_clip_state *state)
if (!trace_dumping_enabled_locked())
return;
- if(!state) {
+ if (!state) {
trace_dump_null();
return;
}
@@ -260,7 +260,7 @@ void trace_dump_shader_state(const struct pipe_shader_state *state)
if (!trace_dumping_enabled_locked())
return;
- if(!state) {
+ if (!state) {
trace_dump_null();
return;
}
@@ -312,7 +312,7 @@ void trace_dump_depth_stencil_alpha_state(const struct pipe_depth_stencil_alpha_
if (!trace_dumping_enabled_locked())
return;
- if(!state) {
+ if (!state) {
trace_dump_null();
return;
}
@@ -382,7 +382,7 @@ void trace_dump_blend_state(const struct pipe_blend_state *state)
if (!trace_dumping_enabled_locked())
return;
- if(!state) {
+ if (!state) {
trace_dump_null();
return;
}
@@ -411,7 +411,7 @@ void trace_dump_blend_color(const struct pipe_blend_color *state)
if (!trace_dumping_enabled_locked())
return;
- if(!state) {
+ if (!state) {
trace_dump_null();
return;
}
@@ -428,7 +428,7 @@ void trace_dump_stencil_ref(const struct pipe_stencil_ref *state)
if (!trace_dumping_enabled_locked())
return;
- if(!state) {
+ if (!state) {
trace_dump_null();
return;
}
@@ -462,7 +462,7 @@ void trace_dump_sampler_state(const struct pipe_sampler_state *state)
if (!trace_dumping_enabled_locked())
return;
- if(!state) {
+ if (!state) {
trace_dump_null();
return;
}
@@ -495,7 +495,7 @@ void trace_dump_sampler_view_template(const struct pipe_sampler_view *state,
if (!trace_dumping_enabled_locked())
return;
- if(!state) {
+ if (!state) {
trace_dump_null();
return;
}
@@ -541,7 +541,7 @@ void trace_dump_surface_template(const struct pipe_surface *state,
if (!trace_dumping_enabled_locked())
return;
- if(!state) {
+ if (!state) {
trace_dump_null();
return;
}
@@ -582,7 +582,7 @@ void trace_dump_transfer(const struct pipe_transfer *state)
if (!trace_dumping_enabled_locked())
return;
- if(!state) {
+ if (!state) {
trace_dump_null();
return;
}
@@ -611,7 +611,7 @@ void trace_dump_vertex_buffer(const struct pipe_vertex_buffer *state)
if (!trace_dumping_enabled_locked())
return;
- if(!state) {
+ if (!state) {
trace_dump_null();
return;
}
@@ -632,7 +632,7 @@ void trace_dump_index_buffer(const struct pipe_index_buffer *state)
if (!trace_dumping_enabled_locked())
return;
- if(!state) {
+ if (!state) {
trace_dump_null();
return;
}
@@ -653,7 +653,7 @@ void trace_dump_vertex_element(const struct pipe_vertex_element *state)
if (!trace_dumping_enabled_locked())
return;
- if(!state) {
+ if (!state) {
trace_dump_null();
return;
}
@@ -675,7 +675,7 @@ void trace_dump_constant_buffer(const struct pipe_constant_buffer *state)
if (!trace_dumping_enabled_locked())
return;
- if(!state) {
+ if (!state) {
trace_dump_null();
return;
}
@@ -693,7 +693,7 @@ void trace_dump_draw_info(const struct pipe_draw_info *state)
if (!trace_dumping_enabled_locked())
return;
- if(!state) {
+ if (!state) {
trace_dump_null();
return;
}
diff --git a/src/gallium/drivers/trace/tr_screen.c b/src/gallium/drivers/trace/tr_screen.c
index 62a51e9a94d..ff057e2a4a4 100644
--- a/src/gallium/drivers/trace/tr_screen.c
+++ b/src/gallium/drivers/trace/tr_screen.c
@@ -462,7 +462,7 @@ trace_screen_create(struct pipe_screen *screen)
trace_dump_call_begin("", "pipe_screen_create");
tr_scr = CALLOC_STRUCT(trace_screen);
- if(!tr_scr)
+ if (!tr_scr)
goto error2;
tr_scr->base.destroy = trace_screen_destroy;
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));
diff --git a/src/gallium/drivers/trace/tr_texture.h b/src/gallium/drivers/trace/tr_texture.h
index e48b7b39e24..af508511567 100644
--- a/src/gallium/drivers/trace/tr_texture.h
+++ b/src/gallium/drivers/trace/tr_texture.h
@@ -88,7 +88,7 @@ struct trace_transfer
static inline struct trace_resource *
trace_resource(struct pipe_resource *texture)
{
- if(!texture)
+ if (!texture)
return NULL;
(void)trace_screen(texture->screen);
return (struct trace_resource *)texture;
@@ -98,7 +98,7 @@ trace_resource(struct pipe_resource *texture)
static inline struct trace_surface *
trace_surface(struct pipe_surface *surface)
{
- if(!surface)
+ if (!surface)
return NULL;
(void)trace_resource(surface->texture);
return (struct trace_surface *)surface;
@@ -117,7 +117,7 @@ trace_sampler_view(struct pipe_sampler_view *sampler_view)
static inline struct trace_transfer *
trace_transfer(struct pipe_transfer *transfer)
{
- if(!transfer)
+ if (!transfer)
return NULL;
(void)trace_resource(transfer->resource);
return (struct trace_transfer *)transfer;