i965/vs: Don't lose attribute type when converting ATTR to FIXED_HW_REG.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 19 Nov 2012 07:51:47 +0000 (23:51 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 19 Nov 2012 19:38:58 +0000 (11:38 -0800)
commit4e907018b2b7d18fee1359fa877079af45e012af
treeaeca000d851cc0bad281c86198015cac3281960e
parent5cf8536690226b3bd19d19197fcec501a278703c
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>
src/mesa/drivers/dri/i965/brw_vec4_emit.cpp