gallium: tweak printing of generic declarations
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 8 Jul 2008 21:00:11 +0000 (15:00 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 8 Jul 2008 21:07:28 +0000 (15:07 -0600)
src/gallium/auxiliary/tgsi/util/tgsi_dump.c

index 92aff88..a395c63 100644 (file)
@@ -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( ']' );