mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-20 17:30:24 +01:00
i965/vs: Don't lose attribute type when converting ATTR to FIXED_HW_REG.
The new brw_reg always had type BRW_REGISTER_TYPE_F, rather than inheriting the original type of the ATTR file register. In the past, this hasn't been a problem since we only execute this code when fixing up GL_FIXED attributes, which always have float types. However, we'll soon be using it for ARB_vertex_type_10_10_10_2 support, which uses D and UD types. Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
5cf8536690
commit
4e907018b2
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue