diff options
author | Zack Rusin <[email protected]> | 2010-07-13 21:49:53 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2010-07-13 21:49:53 -0400 |
commit | 1491c6aa2de17760ab157a3fe71e45006e4eecf6 (patch) | |
tree | 5b9cc35d0c268439529fe26c12549ccbbf9f9e20 /src/mesa/state_tracker | |
parent | 79b643dd02ac4e19f24c9cd88843719746f8ec69 (diff) |
mesa: add comments and change Index2D to just Index2
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_mesa_to_tgsi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/state_tracker/st_mesa_to_tgsi.c b/src/mesa/state_tracker/st_mesa_to_tgsi.c index c870db2d699..bacd091853b 100644 --- a/src/mesa/state_tracker/st_mesa_to_tgsi.c +++ b/src/mesa/state_tracker/st_mesa_to_tgsi.c @@ -305,9 +305,9 @@ translate_src( struct st_translate *t, { struct ureg_src src = src_register( t, SrcReg->File, SrcReg->Index ); - if (t->procType == TGSI_PROCESSOR_GEOMETRY && SrcReg->HasIndex2D) { - src = src_register( t, SrcReg->File, SrcReg->Index2D ); - if (SrcReg->RelAddr2D) + if (t->procType == TGSI_PROCESSOR_GEOMETRY && SrcReg->HasIndex2) { + src = src_register( t, SrcReg->File, SrcReg->Index2 ); + if (SrcReg->RelAddr2) src = ureg_src_dimension_indirect( src, ureg_src(t->address[0]), SrcReg->Index); else |