gallium: tweak printing of generic declarations

This commit is contained in:
Brian Paul
2008-07-08 15:00:11 -06:00
parent fe1c0e44aa
commit 7cbc244c52
+2 -1
View 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( ']' );