i965/fs: Implement nir_op_uadd_sat
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
committed by
Jason Ekstrand
parent
74492ebad9
commit
e639d39faf
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user