diff options
author | Zack Rusin <[email protected]> | 2010-06-11 10:35:24 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2010-06-11 10:35:24 -0400 |
commit | 23969670387bc0bb7d0761936905e5eb4df963dc (patch) | |
tree | c18dafe1c955c6d8680a5877c8db690d751b4f4f /src/gallium/auxiliary/tgsi/tgsi_dump.c | |
parent | 27bc2de5461c1d66c8e005b35de77e7b9e214754 (diff) |
tgsi: support 2d indirect addressing
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_dump.c')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_dump.c | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_dump.c b/src/gallium/auxiliary/tgsi/tgsi_dump.c index 35480076edf..de6d4419464 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_dump.c +++ b/src/gallium/auxiliary/tgsi/tgsi_dump.c @@ -211,9 +211,24 @@ _dump_register_src( { ENM(src->Register.File, file_names); if (src->Register.Dimension) { - CHR('['); - SID(src->Dimension.Index); - CHR(']'); + if (src->Dimension.Indirect) { + CHR( '[' ); + ENM( src->DimIndirect.File, file_names ); + CHR( '[' ); + SID( src->DimIndirect.Index ); + TXT( "]." ); + ENM( src->DimIndirect.SwizzleX, swizzle_names ); + if (src->Dimension.Index != 0) { + if (src->Dimension.Index > 0) + CHR( '+' ); + SID( src->Dimension.Index ); + } + CHR( ']' ); + } else { + CHR('['); + SID(src->Dimension.Index); + CHR(']'); + } } if (src->Register.Indirect) { CHR( '[' ); |