summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2010-07-13 21:49:53 -0400
committerZack Rusin <[email protected]>2010-07-13 21:49:53 -0400
commit1491c6aa2de17760ab157a3fe71e45006e4eecf6 (patch)
tree5b9cc35d0c268439529fe26c12549ccbbf9f9e20 /src/mesa/state_tracker
parent79b643dd02ac4e19f24c9cd88843719746f8ec69 (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.c6
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