From: Ian Romanick Date: Sat, 6 Oct 2018 02:04:47 +0000 (-0500) Subject: i965/fs: Implement nir_op_uadd_sat X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e639d39faf7aeeaa226bc079174aa1629f42228a;p=mesa.git i965/fs: Implement nir_op_uadd_sat Reviewed-by: Jason Ekstrand --- diff --git a/src/intel/compiler/brw_fs_nir.cpp b/src/intel/compiler/brw_fs_nir.cpp index d5a05aacdf5..6d70d744002 100644 --- a/src/intel/compiler/brw_fs_nir.cpp +++ b/src/intel/compiler/brw_fs_nir.cpp @@ -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;