Mesa (gallium-mesa-7.4): tgsi: don' t dump interpolation info except for fragment shader inputs

Keith Whitwell keithw at kemper.freedesktop.org
Fri Feb 27 19:34:11 UTC 2009


Module: Mesa
Branch: gallium-mesa-7.4
Commit: 40fd1a0817caf2593eed1974b7b33384a8ce8c45
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=40fd1a0817caf2593eed1974b7b33384a8ce8c45

Author: Keith Whitwell <keithw at vmware.com>
Date:   Fri Feb 27 19:33:17 2009 +0000

tgsi: don't dump interpolation info except for fragment shader inputs

Don't print the meaningless and confusing CONSTANT interpolation
attribute after everything else.

---

 src/gallium/auxiliary/tgsi/tgsi_dump.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/gallium/auxiliary/tgsi/tgsi_dump.c b/src/gallium/auxiliary/tgsi/tgsi_dump.c
index 2ed8c2b..c51e6cb 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_dump.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_dump.c
@@ -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" );




More information about the mesa-commit mailing list