From: Brian Paul Date: Thu, 7 Jan 2010 17:57:33 +0000 (-0700) Subject: tgsi: fix incorrectly placed braces, add more braces to be clear X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0c6794c46fdd1225bb1d8ece77ea937cb822a1a3;p=mesa.git tgsi: fix incorrectly placed braces, add more braces to be clear --- 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