diff options
author | Eric Anholt <[email protected]> | 2010-07-21 17:35:21 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-07-21 20:17:24 -0700 |
commit | d0326e0e4ee245ec471fc976fbe98183fbe6da4e (patch) | |
tree | 64f3f85918b44b082672e83750b79c930c0fae95 | |
parent | 04de6861c1a41859dd85ca066b964e5df3ad63b6 (diff) |
i965: Clean up dead code from the VS get_constant/get_reladdr_constant split.
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vs_emit.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vs_emit.c b/src/mesa/drivers/dri/i965/brw_vs_emit.c index 78944177a07..4616e507f5d 100644 --- a/src/mesa/drivers/dri/i965/brw_vs_emit.c +++ b/src/mesa/drivers/dri/i965/brw_vs_emit.c @@ -868,8 +868,6 @@ get_constant(struct brw_vs_compile *c, assert(argIndex < 3); if (c->current_const[argIndex].index != src->Index) { - struct brw_reg addrReg = c->regs[PROGRAM_ADDRESS][0]; - /* Keep track of the last constant loaded in this slot, for reuse. */ c->current_const[argIndex].index = src->Index; @@ -882,7 +880,7 @@ get_constant(struct brw_vs_compile *c, const_reg, /* writeback dest */ 0, /* oword */ 0, /* relative indexing? */ - addrReg, /* address register */ + brw_null_reg(), /* address register */ 16 * src->Index, /* byte offset */ SURF_INDEX_VERT_CONST_BUFFER /* binding table index */ ); |