mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
intel/compiler: Put back saturate on [iu]add_sat opcodes
I deleted one too many inst->saturate = ... lines. This one must stay.
Fixes: b7c47c4f7c ("intel/compiler: Drop nir_lower_to_source_mods() and related handling.")
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4669>
This commit is contained in:
parent
f699bb42af
commit
902c8731f4
1 changed files with 1 additions and 0 deletions
|
|
@ -1250,6 +1250,7 @@ fs_visitor::nir_emit_alu(const fs_builder &bld, nir_alu_instr *instr,
|
|||
case nir_op_iadd_sat:
|
||||
case nir_op_uadd_sat:
|
||||
inst = bld.ADD(result, op[0], op[1]);
|
||||
inst->saturate = true;
|
||||
break;
|
||||
|
||||
case nir_op_isub_sat:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue