gallium: print extended swizzle negation flags
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 23 Jul 2008 15:56:44 +0000 (09:56 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 23 Jul 2008 15:56:44 +0000 (09:56 -0600)
src/gallium/auxiliary/tgsi/util/tgsi_dump.c

index 94180f7e50785773c8b83da1796bd5ec4b42d66b..d2e6375212f3ae0a2a24302cbe1cc29924472640 100644 (file)
@@ -491,9 +491,17 @@ tgsi_dump_instruction(
           src->SrcRegisterExtSwz.ExtSwizzleZ != TGSI_EXTSWIZZLE_Z ||
           src->SrcRegisterExtSwz.ExtSwizzleW != TGSI_EXTSWIZZLE_W) {
          CHR( '.' );
+         if (src->SrcRegisterExtSwz.NegateX)
+            TXT("-");
          ENM( src->SrcRegisterExtSwz.ExtSwizzleX, extswizzle_names );
+         if (src->SrcRegisterExtSwz.NegateY)
+            TXT("-");
          ENM( src->SrcRegisterExtSwz.ExtSwizzleY, extswizzle_names );
+         if (src->SrcRegisterExtSwz.NegateZ)
+            TXT("-");
          ENM( src->SrcRegisterExtSwz.ExtSwizzleZ, extswizzle_names );
+         if (src->SrcRegisterExtSwz.NegateW)
+            TXT("-");
          ENM( src->SrcRegisterExtSwz.ExtSwizzleW, extswizzle_names );
       }