i965/vs: Add support for conversion of FIXED_HW_REG src_reg to/from dst_reg.

This was quietly occurring in some emit code I produced, and failed.
This commit is contained in:
Eric Anholt
2011-08-15 20:59:24 -07:00
parent e9a86ae337
commit 7bf70c29ad
@@ -38,6 +38,7 @@ src_reg::src_reg(dst_reg reg)
this->reg_offset = reg.reg_offset;
this->type = reg.type;
this->reladdr = reg.reladdr;
this->fixed_hw_reg = reg.fixed_hw_reg;
int swizzles[4];
int next_chan = 0;
@@ -68,6 +69,7 @@ dst_reg::dst_reg(src_reg reg)
this->type = reg.type;
this->writemask = WRITEMASK_XYZW;
this->reladdr = reg.reladdr;
this->fixed_hw_reg = reg.fixed_hw_reg;
}
vec4_instruction *