Mesa (master): tgsi: don' t dump interpolation info except for fragment shader inputs

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


Module: Mesa
Branch: master
Commit: 43714e92e3b512307851349fd8c706638030854e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=43714e92e3b512307851349fd8c706638030854e

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 d57cb91..a784b7c 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