mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-27 04:30:37 +02:00
i965/fs: Implement nir_op_uadd_sat
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
74492ebad9
commit
e639d39faf
1 changed files with 5 additions and 0 deletions
|
|
@ -982,6 +982,11 @@ fs_visitor::nir_emit_alu(const fs_builder &bld, nir_alu_instr *instr)
|
|||
inst->saturate = instr->dest.saturate;
|
||||
break;
|
||||
|
||||
case nir_op_uadd_sat:
|
||||
inst = bld.ADD(result, op[0], op[1]);
|
||||
inst->saturate = true;
|
||||
break;
|
||||
|
||||
case nir_op_fmul:
|
||||
inst = bld.MUL(result, op[0], op[1]);
|
||||
inst->saturate = instr->dest.saturate;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue