From 7c06cebe110adc6d0d3207d335a142028ab285cf Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Thu, 14 Mar 2019 11:50:34 +0000 Subject: [PATCH] shader: simplify pre and postfixes in emit_ios_fs() v2: keep prefix/auxprefix declarations on separate lines (Gert) Signed-off-by: Emil Velikov Reviewed-By: Gert Wollny --- src/vrend_shader.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/vrend_shader.c b/src/vrend_shader.c index e2ce090..b8b957a 100644 --- a/src/vrend_shader.c +++ b/src/vrend_shader.c @@ -6018,7 +6018,6 @@ static const char *get_depth_layout(int depth_layout) static void emit_ios_fs(struct dump_ctx *ctx) { uint32_t i; - const char *prefix = "", *auxprefix = ""; if (fs_emit_layout(ctx)) { bool upper_left = !(ctx->fs_coord_origin ^ ctx->key->invert_fs_origin); @@ -6038,8 +6037,8 @@ static void emit_ios_fs(struct dump_ctx *ctx) for (i = 0; i < ctx->num_inputs; i++) { if (!ctx->inputs[i].glsl_predefined_no_emit) { - prefix = ""; - auxprefix = ""; + const char *prefix = ""; + const char *auxprefix = ""; if (ctx->inputs[i].name == TGSI_SEMANTIC_GENERIC || ctx->inputs[i].name == TGSI_SEMANTIC_COLOR ||