From: Jason Ekstrand Date: Tue, 14 Oct 2014 19:02:19 +0000 (-0700) Subject: i965/fs: Use the correct regs_written on unspill instructions X-Git-Tag: upstream/17.1.0~22876 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3435aa49f44672a34a53e19251fa0bcc1ee4e50f;p=platform%2Fupstream%2Fmesa.git i965/fs: Use the correct regs_written on unspill instructions Signed-off-by: Jason Ekstrand Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp b/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp index 32669f6..65a09a0 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp @@ -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;