[Mesa-dev] [PATCH] i965/vs: Don't lose attribute type when converting ATTR to FIXED_HW_REG.

Kenneth Graunke kenneth at whitecape.org
Mon Nov 19 00:08:16 PST 2012


The new brw_reg always had type BRW_REGISTER_TYPE_F, rather than
inheriting the original type of the ATTR file register.
---
 src/mesa/drivers/dri/i965/brw_vec4_emit.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mesa/drivers/dri/i965/brw_vec4_emit.cpp b/src/mesa/drivers/dri/i965/brw_vec4_emit.cpp
index c9fdc16..a162420 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_emit.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_emit.cpp
@@ -65,6 +65,7 @@ vec4_visitor::setup_attributes(int payload_reg)
 	 int grf = attribute_map[inst->dst.reg + inst->dst.reg_offset];
 
 	 struct brw_reg reg = brw_vec8_grf(grf, 0);
+	 reg.type = inst->dst.type;
 	 reg.dw1.bits.writemask = inst->dst.writemask;
 
 	 inst->dst.file = HW_REG;
-- 
1.8.0



More information about the mesa-dev mailing list