Module: Mesa Branch: main Commit: dfb034853a27ec981c1e205c5b798b234215baf3 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=dfb034853a27ec981c1e205c5b798b234215baf3
Author: Francisco Jerez <[email protected]> Date: Tue Aug 16 17:41:56 2022 -0700 intel/fs: Use full 32-bit sample masks when immediate. Reviewed-by: Caio Oliveira <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26994> --- src/intel/compiler/brw_lower_logical_sends.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel/compiler/brw_lower_logical_sends.cpp b/src/intel/compiler/brw_lower_logical_sends.cpp index 1a784010bf8..c284ed7870b 100644 --- a/src/intel/compiler/brw_lower_logical_sends.cpp +++ b/src/intel/compiler/brw_lower_logical_sends.cpp @@ -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);
