mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
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:
parent
82592433e6
commit
9329da6d88
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue