diff options
author | Zack Rusin <zack@tungstengraphics.com> | 2008-06-10 16:59:44 -0400 |
---|---|---|
committer | Zack Rusin <zack@tungstengraphics.com> | 2008-06-12 14:15:37 -0400 |
commit | 68ef8e89a5f25cd9f80e2b9088604631a28edc3c (patch) | |
tree | 4f30579541c645b80dd2ed752528ee247c7971d3 /src/gallium/auxiliary | |
parent | 5ecb2f2d0fca0c5ea847d1968459aa0dd8138f14 (diff) |
glsl: implement variable array indexes
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/tgsi/util/tgsi_dump.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/tgsi/util/tgsi_dump.c b/src/gallium/auxiliary/tgsi/util/tgsi_dump.c index d1a3dfd9c7..92aff88925 100644 --- a/src/gallium/auxiliary/tgsi/util/tgsi_dump.c +++ b/src/gallium/auxiliary/tgsi/util/tgsi_dump.c @@ -803,7 +803,14 @@ tgsi_dump_instruction( ENM( src->SrcRegister.File, TGSI_FILES_SHORT ); CHR( '[' ); - SID( src->SrcRegister.Index ); + if (src->SrcRegister.Indirect) { + TXT( "addr" ); + if (src->SrcRegister.Index > 0) + CHR( '+' ); + SID( src->SrcRegister.Index ); + } + else + SID( src->SrcRegister.Index ); CHR( ']' ); if (src->SrcRegister.SwizzleX != TGSI_SWIZZLE_X || |