summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-07-08 15:00:11 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-07-08 15:07:28 -0600
commit7cbc244c52610eb59b0fe1fc7275f307b560c281 (patch)
tree2c40bdb8ee8299c04afb07faf2b54711ae1490b8
parentfe1c0e44aadc033075797804b3275ac91f72c1ba (diff)
gallium: tweak printing of generic declarations
-rw-r--r--src/gallium/auxiliary/tgsi/util/tgsi_dump.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/tgsi/util/tgsi_dump.c b/src/gallium/auxiliary/tgsi/util/tgsi_dump.c
index 92aff88925..a395c630cc 100644
--- a/src/gallium/auxiliary/tgsi/util/tgsi_dump.c
+++ b/src/gallium/auxiliary/tgsi/util/tgsi_dump.c
@@ -573,7 +573,8 @@ tgsi_dump_declaration(
if (decl->Declaration.Semantic) {
TXT( ", " );
ENM( decl->Semantic.SemanticName, TGSI_SEMANTICS_SHORT );
- if (decl->Semantic.SemanticIndex != 0) {
+ if (decl->Semantic.SemanticIndex != 0 ||
+ decl->Semantic.SemanticName == TGSI_SEMANTIC_GENERIC) {
CHR( '[' );
UID( decl->Semantic.SemanticIndex );
CHR( ']' );