summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2008-01-03 19:46:16 +0000
committerKeith Whitwell <[email protected]>2008-01-04 01:20:41 +0000
commitf54012650eebd940a6a7006ebcc0b9160c0368cf (patch)
treeced987200ee616ca9e311fbf8d2592969b103592
parent65426b144e9c3f6c8c1e6d0c0dce0ae955f7d1c3 (diff)
965: use correct offset for constants vs immediates
-rw-r--r--src/mesa/pipe/i965simple/brw_vs_emit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/pipe/i965simple/brw_vs_emit.c b/src/mesa/pipe/i965simple/brw_vs_emit.c
index 0cc0a437b0b..5f212bd0553 100644
--- a/src/mesa/pipe/i965simple/brw_vs_emit.c
+++ b/src/mesa/pipe/i965simple/brw_vs_emit.c
@@ -630,8 +630,8 @@ static struct brw_reg get_reg( struct brw_vs_compile *c,
assert(c->regs[file][index].nr != 0);
return c->regs[file][index];
case TGSI_FILE_CONSTANT:
- assert(c->regs[TGSI_FILE_CONSTANT][index + c->prog_data.num_consts].nr != 0);
- return c->regs[TGSI_FILE_CONSTANT][index + c->prog_data.num_consts];
+ assert(c->regs[TGSI_FILE_CONSTANT][index + c->prog_data.num_imm].nr != 0);
+ return c->regs[TGSI_FILE_CONSTANT][index + c->prog_data.num_imm];
case TGSI_FILE_IMMEDIATE:
assert(c->regs[TGSI_FILE_CONSTANT][index].nr != 0);
return c->regs[TGSI_FILE_CONSTANT][index];