OSDN Git Service

i965/fs: Remove creation of a MOV instruction that's never used.
authorEric Anholt <eric@anholt.net>
Wed, 13 Mar 2013 19:17:25 +0000 (12:17 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 1 Apr 2013 23:17:24 +0000 (16:17 -0700)
We weren't inserting it into the list, so it did nothing.  This line was
replaced by the MOV/MUL block above.

NOTE: This is a candidate for the 9.1 branch.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.cpp

index cba1167..48f1f05 100644 (file)
@@ -253,7 +253,6 @@ fs_visitor::VARYING_PULL_CONSTANT_LOAD(fs_reg dst, fs_reg surf_index,
       } else {
          instructions.push_tail(MUL(mrf, offset, fs_reg(4)));
       }
-      inst = MOV(mrf, offset);
       inst = new(mem_ctx) fs_inst(FS_OPCODE_VARYING_PULL_CONSTANT_LOAD,
                                   dst, surf_index);
       inst->header_present = header_present;