From 43714e92e3b512307851349fd8c706638030854e Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Fri, 27 Feb 2009 19:33:17 +0000 Subject: [PATCH] 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 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/tgsi/tgsi_dump.c b/src/gallium/auxiliary/tgsi/tgsi_dump.c index d57cb9139f7..a784b7cc3c1 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" ); -- 2.30.2