diff options
author | Michal Krol <[email protected]> | 2010-01-18 19:07:44 +0100 |
---|---|---|
committer | Michal Krol <[email protected]> | 2010-01-18 19:13:49 +0100 |
commit | 7472cd0f1f0f8284729274bc5c453d59d9ab4b55 (patch) | |
tree | 544cfc1e276b09ae93f1bf841fe471d6842d5926 /src/gallium/auxiliary/tgsi/tgsi_dump.c | |
parent | 463351ea6c953c3db7f135ba97160a212562daef (diff) |
tgsi: Fix behaviour of dimension index.
The dimension index always addresses the second-dimension axis.
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_dump.c')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_dump.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_dump.c b/src/gallium/auxiliary/tgsi/tgsi_dump.c index d7ff262f30a..c254a7274f1 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_dump.c +++ b/src/gallium/auxiliary/tgsi/tgsi_dump.c @@ -219,8 +219,13 @@ _dump_register_src( struct dump_ctx *ctx, const struct tgsi_full_src_register *src ) { + ENM(src->Register.File, file_names); + if (src->Register.Dimension) { + CHR('['); + SID(src->Dimension.Index); + CHR(']'); + } if (src->Register.Indirect) { - ENM( src->Register.File, file_names ); CHR( '[' ); ENM( src->Indirect.File, file_names ); CHR( '[' ); @@ -234,16 +239,10 @@ _dump_register_src( } CHR( ']' ); } else { - ENM( src->Register.File, file_names ); CHR( '[' ); SID( src->Register.Index ); CHR( ']' ); } - if (src->Register.Dimension) { - CHR( '[' ); - SID( src->Dimension.Index ); - CHR( ']' ); - } } static void |