tgsi: Dump semantics before interpolator.
authorMichal Krol <michal@tungstengraphics.com>
Mon, 7 Apr 2008 09:44:34 +0000 (11:44 +0200)
committerMichal Krol <michal@tungstengraphics.com>
Fri, 11 Apr 2008 09:50:08 +0000 (11:50 +0200)
src/gallium/auxiliary/tgsi/util/tgsi_dump.c

index 7d292778ad585981e99c1c4a9c2078907e1dd30c..ad9770e4742b585a5176aaf7496150bd85448aca 100644 (file)
@@ -746,17 +746,19 @@ dump_declaration_short(
       }
    }
 
-   if( decl->Declaration.Interpolate ) {
+   if (decl->Declaration.Semantic) {
       TXT( ", " );
-      ENM( decl->Interpolation.Interpolate, TGSI_INTERPOLATES_SHORT );
+      ENM( decl->Semantic.SemanticName, TGSI_SEMANTICS_SHORT );
+      if (decl->Semantic.SemanticIndex != 0) {
+         CHR( '[' );
+         UID( decl->Semantic.SemanticIndex );
+         CHR( ']' );
+      }
    }
 
-   if( decl->Declaration.Semantic ) {
+   if (decl->Declaration.Interpolate) {
       TXT( ", " );
-      ENM( decl->Semantic.SemanticName, TGSI_SEMANTICS_SHORT );
-      CHR( '[' );
-      UID( decl->Semantic.SemanticIndex );
-      CHR( ']' );
+      ENM( decl->Interpolation.Interpolate, TGSI_INTERPOLATES_SHORT );
    }
 }