i965/vs: Handle destinations in the MRF file.

We've been referencing MRFs through the HW_REG file so far, but that
makes it harder to handle compute-to-MRF and similar optimizations.
This commit is contained in:
Eric Anholt 2011-09-06 12:29:15 -07:00
parent 160848d8ef
commit 65d46c96c2

View file

@ -165,6 +165,12 @@ vec4_instruction::get_dst(void)
brw_reg.dw1.bits.writemask = dst.writemask;
break;
case MRF:
brw_reg = brw_message_reg(dst.reg + dst.reg_offset);
brw_reg = retype(brw_reg, dst.type);
brw_reg.dw1.bits.writemask = dst.writemask;
break;
case HW_REG:
brw_reg = dst.fixed_hw_reg;
break;