diff options
author | Michal Krol <[email protected]> | 2008-07-12 17:03:30 +0200 |
---|---|---|
committer | Michal Krol <[email protected]> | 2008-07-12 17:03:30 +0200 |
commit | 9ea485f8865404e3e2e10cdb3b1627e7194c27fe (patch) | |
tree | 647d5ede12c84aabb46e8470fb759c924850ea0d /src | |
parent | 7279d663e984ae8a243f56c010f175fee9ffccb3 (diff) |
tgsi: Fix dumping of indirect addressing.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/tgsi/util/tgsi_dump.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/tgsi/util/tgsi_dump.c b/src/gallium/auxiliary/tgsi/util/tgsi_dump.c index a395c630cc7..6356b6de06c 100644 --- a/src/gallium/auxiliary/tgsi/util/tgsi_dump.c +++ b/src/gallium/auxiliary/tgsi/util/tgsi_dump.c @@ -805,10 +805,12 @@ tgsi_dump_instruction( CHR( '[' ); if (src->SrcRegister.Indirect) { - TXT( "addr" ); - if (src->SrcRegister.Index > 0) - CHR( '+' ); - SID( src->SrcRegister.Index ); + TXT( "ADDR[0]" ); + if (src->SrcRegister.Index != 0) { + if (src->SrcRegister.Index > 0) + CHR( '+' ); + SID( src->SrcRegister.Index ); + } } else SID( src->SrcRegister.Index ); |