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

Jose Fonseca jrfonseca at kemper.freedesktop.org
Fri Aug 28 17:59:27 UTC 2009


Module: Mesa
Branch: gallium-0.1
Commit: 2be290e126cb5af78dd3c340e1373be44e5adb57
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2be290e126cb5af78dd3c340e1373be44e5adb57

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 a3e47a2..dd3242b 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_dump.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_dump.c
@@ -246,8 +246,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