brw: Don't set saturate for SYNC instruction

This helper might be used as by another instruction emission,
which itself might have set the saturate bit in the default
state.  This might result in the SYNC being created already
with saturate bit set.

Since SYNC doesn't have saturate, clear that field
instead of sometimes having it set.

Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41005>
This commit is contained in:
Caio Oliveira 2026-04-06 13:12:35 -07:00 committed by Marge Bot
parent 82592433e6
commit 9329da6d88

View file

@ -890,6 +890,7 @@ void brw_NOP(struct brw_codegen *p)
void brw_SYNC(struct brw_codegen *p, enum tgl_sync_function func)
{
brw_eu_inst *insn = next_insn(p, BRW_OPCODE_SYNC);
brw_eu_inst_set_saturate(p->devinfo, insn, 0);
brw_eu_inst_set_cond_modifier(p->devinfo, insn, func);
}