From: Kenneth Graunke Date: Fri, 18 Jul 2014 20:19:46 +0000 (-0700) Subject: i965/fs: Fix gl_SampleMask handling for SIMD16 on Gen8+. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=29af97f2804442e7952b98f8cea8e8ff740d196e;p=mesa.git i965/fs: Fix gl_SampleMask handling for SIMD16 on Gen8+. We actually want to use mov(16), not mov(8). Fixes 7 Piglit tests: ARB_sample_shading/builtin-gl-sample-mask [2468] and ARB_sample_shading/builtin-gl-sample-mask-simple [468]. Signed-off-by: Kenneth Graunke Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=80991 Reviewed-by: Matt Turner Cc: "10.2" --- diff --git a/src/mesa/drivers/dri/i965/gen8_fs_generator.cpp b/src/mesa/drivers/dri/i965/gen8_fs_generator.cpp index 2924820347f..2d745fd374f 100644 --- a/src/mesa/drivers/dri/i965/gen8_fs_generator.cpp +++ b/src/mesa/drivers/dri/i965/gen8_fs_generator.cpp @@ -715,13 +715,8 @@ gen8_fs_generator::generate_set_omask(fs_inst *inst, mask.hstride == BRW_HORIZONTAL_STRIDE_0); } - unsigned save_exec_size = default_state.exec_size; - default_state.exec_size = BRW_EXECUTE_8; - gen8_instruction *mov = MOV(dst, retype(mask, dst.type)); gen8_set_mask_control(mov, BRW_MASK_DISABLE); - - default_state.exec_size = save_exec_size; } /**