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 92aff88925934eb25662e509fc1633ad902108a6..a395c630cc7c5f61c27deb525fc1b0f88d019beb 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( ']' );