summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/tgsi
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2008-07-12 17:03:30 +0200
committerMichal Krol <[email protected]>2008-07-12 17:03:30 +0200
commit9ea485f8865404e3e2e10cdb3b1627e7194c27fe (patch)
tree647d5ede12c84aabb46e8470fb759c924850ea0d /src/gallium/auxiliary/tgsi
parent7279d663e984ae8a243f56c010f175fee9ffccb3 (diff)
tgsi: Fix dumping of indirect addressing.
Diffstat (limited to 'src/gallium/auxiliary/tgsi')
-rw-r--r--src/gallium/auxiliary/tgsi/util/tgsi_dump.c10
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 );