i965/fs: Use the correct regs_written on unspill instructions
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 14 Oct 2014 19:02:19 +0000 (12:02 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 14 Oct 2014 19:39:45 +0000 (12:39 -0700)
Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp

index 32669f689d605c7399efa8137865bd557e7d7e26..65a09a0ee97196cafcd00183503d2e776090419a 100644 (file)
@@ -640,6 +640,7 @@ fs_visitor::emit_unspill(bblock_t *block, fs_inst *inst, fs_reg dst,
       unspill_inst->offset = spill_offset;
       unspill_inst->ir = inst->ir;
       unspill_inst->annotation = inst->annotation;
+      unspill_inst->regs_written = reg_size;
 
       if (!gen7_read) {
          unspill_inst->base_mrf = 14;