From: Eric Anholt Date: Tue, 16 Aug 2011 03:59:24 +0000 (-0700) Subject: i965/vs: Add support for conversion of FIXED_HW_REG src_reg to/from dst_reg. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7bf70c29adf175f51d0347d0187aecc0e9bbbcb8;p=mesa.git 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. --- diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp index 185a01e05f9..621cb53ff84 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp @@ -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 *