i965: Clean up dead code from the VS get_constant/get_reladdr_constant split.
authorEric Anholt <eric@anholt.net>
Thu, 22 Jul 2010 00:35:21 +0000 (17:35 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 22 Jul 2010 03:17:24 +0000 (20:17 -0700)
src/mesa/drivers/dri/i965/brw_vs_emit.c

index 7894417..4616e50 100644 (file)
@@ -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 */
                        );