From: Brian Paul Date: Tue, 8 Jul 2008 21:00:11 +0000 (-0600) Subject: gallium: tweak printing of generic declarations X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7cbc244c52610eb59b0fe1fc7275f307b560c281;p=mesa.git gallium: tweak printing of generic declarations --- diff --git a/src/gallium/auxiliary/tgsi/util/tgsi_dump.c b/src/gallium/auxiliary/tgsi/util/tgsi_dump.c index 92aff889259..a395c630cc7 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( ']' );