diff options
author | Michal Krol <michal@tungstengraphics.com> | 2008-05-01 16:39:54 +0200 |
---|---|---|
committer | Michal Krol <michal@tungstengraphics.com> | 2008-05-02 10:15:54 +0200 |
commit | 9d151a2517de3f83d676624a21b4f73d5accecbe (patch) | |
tree | 7136cea1ecfde1e86e80a921c1a259db6cca73eb | |
parent | 869b0836c1c4339de91c9918ae07926c846a004c (diff) |
tgsi: Dump destination register modulate modifier.
-rw-r--r-- | src/gallium/auxiliary/tgsi/util/tgsi_dump.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/util/tgsi_dump.c b/src/gallium/auxiliary/tgsi/util/tgsi_dump.c index 26bfc2051f..4c65ffd780 100644 --- a/src/gallium/auxiliary/tgsi/util/tgsi_dump.c +++ b/src/gallium/auxiliary/tgsi/util/tgsi_dump.c @@ -767,6 +767,31 @@ dump_instruction_short( SID( dst->DstRegister.Index ); CHR( ']' ); + switch (dst->DstRegisterExtModulate.Modulate) { + case TGSI_MODULATE_1X: + break; + case TGSI_MODULATE_2X: + TXT( "_2X" ); + break; + case TGSI_MODULATE_4X: + TXT( "_4X" ); + break; + case TGSI_MODULATE_8X: + TXT( "_8X" ); + break; + case TGSI_MODULATE_HALF: + TXT( "_D2" ); + break; + case TGSI_MODULATE_QUARTER: + TXT( "_D4" ); + break; + case TGSI_MODULATE_EIGHTH: + TXT( "_D8" ); + break; + default: + assert( 0 ); + } + if( dst->DstRegister.WriteMask != TGSI_WRITEMASK_XYZW ) { CHR( '.' ); if( dst->DstRegister.WriteMask & TGSI_WRITEMASK_X ) { |