i965/fs: Use UD type for offsets in VARYING_PULL_CONSTANT_LOAD
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 25 Nov 2015 17:59:03 +0000 (09:59 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 14 Dec 2015 23:58:09 +0000 (15:58 -0800)
src/mesa/drivers/dri/i965/brw_fs.cpp

index cbaa8afcdcf558611dc9ef6ac7840bf0ff56e009..dc0bdba72c1d2e64ac013ab7b4984556c2cbeec9 100644 (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;