aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorElie Tournier <[email protected]>2017-03-06 15:27:56 +0000
committerIan Romanick <[email protected]>2017-06-20 17:45:49 -0700
commit7e46be3dec0b5e6a06935c18df58f8a0100cc260 (patch)
treecbc282d3587cea08cb508b9ae2c0c29eacaad903 /src
parent8754c5359fea6f68c35bdd5a39d9a7ea506e4b67 (diff)
glsl: Fix indent in dump code
Signed-off-by: Elie Tournier <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/compiler/glsl/ir_builder_print_visitor.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/compiler/glsl/ir_builder_print_visitor.cpp b/src/compiler/glsl/ir_builder_print_visitor.cpp
index 825dbe148e9..02f15e74ee5 100644
--- a/src/compiler/glsl/ir_builder_print_visitor.cpp
+++ b/src/compiler/glsl/ir_builder_print_visitor.cpp
@@ -372,17 +372,17 @@ ir_builder_print_visitor::visit(ir_constant *ir)
switch (ir->type->base_type) {
case GLSL_TYPE_UINT:
if (ir->value.u[i] != 0)
- print_without_indent("r%04X_data.u[%u] = %u;\n",
+ print_with_indent("r%04X_data.u[%u] = %u;\n",
my_index, i, ir->value.u[i]);
break;
case GLSL_TYPE_INT:
if (ir->value.i[i] != 0)
- print_without_indent("r%04X_data.i[%u] = %i;\n",
+ print_with_indent("r%04X_data.i[%u] = %i;\n",
my_index, i, ir->value.i[i]);
break;
case GLSL_TYPE_FLOAT:
if (ir->value.u[i] != 0)
- print_without_indent("r%04X_data.u[%u] = 0x%08x; /* %f */\n",
+ print_with_indent("r%04X_data.u[%u] = 0x%08x; /* %f */\n",
my_index,
i,
ir->value.u[i],
@@ -395,27 +395,27 @@ ir_builder_print_visitor::visit(ir_constant *ir)
memcpy(&v, &ir->value.d[i], sizeof(v));
if (v != 0)
- print_without_indent("r%04X_data.u64[%u] = 0x%016" PRIx64 "; /* %g */\n",
+ print_with_indent("r%04X_data.u64[%u] = 0x%016" PRIx64 "; /* %g */\n",
my_index, i, v, ir->value.d[i]);
break;
}
case GLSL_TYPE_UINT64:
if (ir->value.u64[i] != 0)
- print_without_indent("r%04X_data.u64[%u] = %" PRIu64 ";\n",
+ print_with_indent("r%04X_data.u64[%u] = %" PRIu64 ";\n",
my_index,
i,
ir->value.u64[i]);
break;
case GLSL_TYPE_INT64:
if (ir->value.i64[i] != 0)
- print_without_indent("r%04X_data.i64[%u] = %" PRId64 ";\n",
+ print_with_indent("r%04X_data.i64[%u] = %" PRId64 ";\n",
my_index,
i,
ir->value.i64[i]);
break;
case GLSL_TYPE_BOOL:
if (ir->value.u[i] != 0)
- print_without_indent("r%04X_data.u[%u] = 1;\n", my_index, i);
+ print_with_indent("r%04X_data.u[%u] = 1;\n", my_index, i);
break;
default:
unreachable("Invalid constant type");