diff options
author | Brian <[email protected]> | 2007-10-12 16:12:22 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-10-12 16:12:22 -0600 |
commit | 2a699038dc2412311f89f9fd843522e784ad8fa3 (patch) | |
tree | 0808eddae938d75def56b6952e191224ca5be7c3 /src | |
parent | 4becfdfdd871bba5304d87159892a0ff9df222b8 (diff) |
added code to print extended swizzles
Diffstat (limited to 'src')
-rwxr-xr-x | src/mesa/pipe/tgsi/exec/tgsi_dump.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/mesa/pipe/tgsi/exec/tgsi_dump.c b/src/mesa/pipe/tgsi/exec/tgsi_dump.c index 463f841dde0..76241748c72 100755 --- a/src/mesa/pipe/tgsi/exec/tgsi_dump.c +++ b/src/mesa/pipe/tgsi/exec/tgsi_dump.c @@ -589,6 +589,16 @@ static const char *TGSI_EXTSWIZZLES[] = "EXTSWIZZLE_ONE" }; +static const char *TGSI_EXTSWIZZLES_SHORT[] = +{ + "x", + "y", + "z", + "w", + "0", + "1" +}; + static const char *TGSI_WRITEMASKS[] = { "0", @@ -900,6 +910,16 @@ dump_instruction_short( SID( src->SrcRegister.Index ); CHR( ']' ); + if (src->SrcRegisterExtSwz.ExtSwizzleX != TGSI_EXTSWIZZLE_X || + src->SrcRegisterExtSwz.ExtSwizzleY != TGSI_EXTSWIZZLE_Y || + src->SrcRegisterExtSwz.ExtSwizzleZ != TGSI_EXTSWIZZLE_Z || + src->SrcRegisterExtSwz.ExtSwizzleW != TGSI_EXTSWIZZLE_W) { + CHR( '.' ); + ENM( src->SrcRegisterExtSwz.ExtSwizzleX, TGSI_EXTSWIZZLES_SHORT ); + ENM( src->SrcRegisterExtSwz.ExtSwizzleY, TGSI_EXTSWIZZLES_SHORT ); + ENM( src->SrcRegisterExtSwz.ExtSwizzleZ, TGSI_EXTSWIZZLES_SHORT ); + ENM( src->SrcRegisterExtSwz.ExtSwizzleW, TGSI_EXTSWIZZLES_SHORT ); + } if( src->SrcRegister.SwizzleX != TGSI_SWIZZLE_X || src->SrcRegister.SwizzleY != TGSI_SWIZZLE_Y || src->SrcRegister.SwizzleZ != TGSI_SWIZZLE_Z || |