summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/tgsi/tgsi_sanity.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-01-07 10:57:33 -0700
committerBrian Paul <[email protected]>2010-01-07 10:57:33 -0700
commit0c6794c46fdd1225bb1d8ece77ea937cb822a1a3 (patch)
tree130aac115197514f9208b67a1355cf52e7b20f87 /src/gallium/auxiliary/tgsi/tgsi_sanity.c
parent16b5d2eba3b5ccb56c26c0d1c66763f99f1ad191 (diff)
tgsi: fix incorrectly placed braces, add more braces to be clear
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_sanity.c')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_sanity.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_sanity.c b/src/gallium/auxiliary/tgsi/tgsi_sanity.c
index 3a8cb498d2a..6aeb9efb948 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_sanity.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_sanity.c
@@ -265,13 +265,15 @@ check_register_usage(
}
else {
if (!is_register_declared( ctx, reg )) {
- if (reg->dimensions == 2)
+ if (reg->dimensions == 2) {
report_error( ctx, "%s[%d][%d]: Undeclared %s register", file_names[reg->file],
reg->indices[0], reg->indices[1], name );
- else
+ }
+ else {
report_error( ctx, "%s[%d]: Undeclared %s register", file_names[reg->file],
reg->indices[0], name );
}
+ }
if (!is_register_used( ctx, reg ))
cso_hash_insert(ctx->regs_used, scan_register_key(reg), reg);
else