i965/compute: Fix undefined code with right_mask for SIMD32
authorJordan Justen <jordan.l.justen@intel.com>
Tue, 16 Jun 2015 21:27:15 +0000 (14:27 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Thu, 18 Jun 2015 18:24:39 +0000 (11:24 -0700)
commit2310a65c28f809442c24fc8893c65ce7c7a4dca3
treeb7c234e37575265a93c8c962a0ebbe03682c268b
parent770f141866654dab969302f720228497f0fb35fd
i965/compute: Fix undefined code with right_mask for SIMD32

Although we don't support SIMD32, krh pointed out that the left shift
by 32 is undefined by C/C++ for 32-bit integers.

Suggested-by: Kristian Høgsberg <krh@bitplanet.net>
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_compute.c