tgsi: don't dump interpolation info except for fragment shader inputs
authorKeith Whitwell <keithw@vmware.com>
Fri, 27 Feb 2009 19:33:17 +0000 (19:33 +0000)
committerKeith Whitwell <keithw@vmware.com>
Fri, 27 Feb 2009 19:34:27 +0000 (19:34 +0000)
Don't print the meaningless and confusing CONSTANT interpolation
attribute after everything else.

src/gallium/auxiliary/tgsi/tgsi_dump.c

index d57cb91..a784b7c 100644 (file)
@@ -245,8 +245,12 @@ iter_declaration(
       }
    }
 
-   TXT( ", " );
-   ENM( decl->Declaration.Interpolate, interpolate_names );
+   if (iter->processor.Processor == TGSI_PROCESSOR_FRAGMENT &&
+       decl->Declaration.File == TGSI_FILE_INPUT)
+   {
+      TXT( ", " );
+      ENM( decl->Declaration.Interpolate, interpolate_names );
+   }
 
    if (decl->Declaration.Centroid) {
       TXT( ", CENTROID" );