From ae730049c67cb882c3f936ba6a2c3b1449c45f5e Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Mon, 16 May 2016 18:18:43 -0700 Subject: [PATCH] i965/fs: Return 32 bit mask from fs_builder::sample_mask(). This doesn't actually handle the FS case, just add an assertion for the moment so I don't forget to update it later on for SIMD32 fragment shader dispatch. Reviewed-by: Jason Ekstrand --- src/mesa/drivers/dri/i965/brw_fs_builder.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_builder.h b/src/mesa/drivers/dri/i965/brw_fs_builder.h index f38be6cdf4c..f22903e5234 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_builder.h +++ b/src/mesa/drivers/dri/i965/brw_fs_builder.h @@ -236,8 +236,10 @@ namespace brw { src_reg sample_mask_reg() const { + assert(shader->stage != MESA_SHADER_FRAGMENT || + group() + dispatch_width() <= 16); if (shader->stage != MESA_SHADER_FRAGMENT) { - return brw_imm_d(0xffff); + return brw_imm_d(0xffffffff); } else if (((brw_wm_prog_data *)shader->stage_prog_data)->uses_kill) { return brw_flag_reg(0, 1); } else { -- 2.30.2