diff options
author | Eric Anholt <eric@anholt.net> | 2010-07-22 00:06:10 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-07-22 10:06:55 -0700 |
commit | b69ef5744a5caf5cc169abf47ed2040f7ea8b923 (patch) | |
tree | 8b7f4b3a61e1f4fd214ad2972f1ee30460619173 /src/mesa | |
parent | 2fdff50999825f5698f1f7f88565162f39227b2f (diff) |
i965: Fix up VS temporary array access for fixed index offset != 0.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vs_emit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vs_emit.c b/src/mesa/drivers/dri/i965/brw_vs_emit.c index 9c2f722c13..bb82147464 100644 --- a/src/mesa/drivers/dri/i965/brw_vs_emit.c +++ b/src/mesa/drivers/dri/i965/brw_vs_emit.c @@ -972,7 +972,7 @@ static struct brw_reg deref( struct brw_vs_compile *c, struct brw_reg tmp = vec4(get_tmp(c)); struct brw_reg addr_reg = c->regs[PROGRAM_ADDRESS][0]; struct brw_reg vp_address = retype(vec1(addr_reg), BRW_REGISTER_TYPE_UW); - GLuint byte_offset = arg.nr * 32 + arg.subnr + offset * 16; + GLuint byte_offset = arg.nr * 32 + arg.subnr + offset * reg_size; struct brw_reg indirect = brw_vec4_indirect(0,0); struct brw_reg acc = retype(brw_acc_reg(), BRW_REGISTER_TYPE_D); |