i965/fs: Use UD type for offsets in VARYING_PULL_CONSTANT_LOAD

This commit is contained in:
Jason Ekstrand 2015-11-25 09:59:03 -08:00
parent a487f0284f
commit eb76f226cf

View file

@ -174,7 +174,7 @@ fs_visitor::VARYING_PULL_CONSTANT_LOAD(const fs_builder &bld,
* CSE can later notice that those loads are all the same and eliminate
* the redundant ones.
*/
fs_reg vec4_offset = vgrf(glsl_type::int_type);
fs_reg vec4_offset = vgrf(glsl_type::uint_type);
bld.ADD(vec4_offset, varying_offset, brw_imm_ud(const_offset & ~0xf));
int scale = 1;