i965/gen7: Fix gl_HelperInvocation
authorJordan Justen <jordan.l.justen@intel.com>
Tue, 24 May 2016 00:34:51 +0000 (17:34 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Tue, 24 May 2016 22:44:06 +0000 (15:44 -0700)
It appears that UV immediates aren't working on Ivy Bridge. In this
case, a signed version will work, and this fixes the piglit
tests/spec/glsl-4.50/execution/helper-invocation.shader_test test.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp

index 3189ff461b1469407510f6cc595accb355edf489..e7e0ee12b9008cbb65c1e61a06bc4557bd0bb726 100644 (file)
@@ -309,7 +309,7 @@ emit_system_values_block(nir_block *block, fs_visitor *v)
                      stride(byte_offset(retype(brw_vec1_grf(1, 0),
                                                BRW_REGISTER_TYPE_UB), 28),
                             1, 8, 0),
-                     brw_imm_uv(0x76543210));
+                     brw_imm_v(0x76543210));
 
             /* A set bit in the pixel mask means the channel is enabled, but
              * that is the opposite of gl_HelperInvocation so we need to invert