Browse Source

i965/fs: Reset reg_offset of the original destination to zero in compute_to_mrf().

Prevents an assertion failure in the following commit.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
tags/12.0-branchpoint
Francisco Jerez 10 years ago
parent
commit
51dd6a60f5
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/mesa/drivers/dri/i965/brw_fs.cpp

+ 1
- 0
src/mesa/drivers/dri/i965/brw_fs.cpp View File

/* Found the creator of our MRF's source value. */ /* Found the creator of our MRF's source value. */
scan_inst->dst.file = MRF; scan_inst->dst.file = MRF;
scan_inst->dst.nr = inst->dst.nr; scan_inst->dst.nr = inst->dst.nr;
scan_inst->dst.reg_offset = 0;
scan_inst->saturate |= inst->saturate; scan_inst->saturate |= inst->saturate;
inst->remove(block); inst->remove(block);
progress = true; progress = true;

Loading…
Cancel
Save