intel/fs: Use full 32-bit sample masks when immediate.

Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26994>
This commit is contained in:
Francisco Jerez 2022-08-16 17:41:56 -07:00 committed by Marge Bot
parent 565ee4fafc
commit dfb034853a

View file

@ -1642,7 +1642,7 @@ lower_surface_logical_send(const fs_builder &bld, fs_inst *inst)
const bool has_side_effects = inst->has_side_effects();
fs_reg sample_mask = allow_sample_mask.ud ? brw_sample_mask_reg(bld) :
fs_reg(brw_imm_d(0xffff));
fs_reg(brw_imm_ud(0xffffffff));
/* From the BDW PRM Volume 7, page 147:
*
@ -1902,7 +1902,7 @@ lower_lsc_surface_logical_send(const fs_builder &bld, fs_inst *inst)
/* Predicate the instruction on the sample mask if needed */
fs_reg sample_mask = allow_sample_mask.ud ? brw_sample_mask_reg(bld) :
fs_reg(brw_imm_d(0xffff));
fs_reg(brw_imm_ud(0xffffffff));
if (sample_mask.file != BAD_FILE && sample_mask.file != IMM)
brw_emit_predicate_on_sample_mask(bld, inst);