Mesa (master): i965/fs: Implement nir_op_uadd_sat
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Dec 13 17:50:22 UTC 2018
Module: Mesa
Branch: master
Commit: e639d39faf7aeeaa226bc079174aa1629f42228a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e639d39faf7aeeaa226bc079174aa1629f42228a
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Fri Oct 5 21:04:47 2018 -0500
i965/fs: Implement nir_op_uadd_sat
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
---
src/intel/compiler/brw_fs_nir.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/intel/compiler/brw_fs_nir.cpp b/src/intel/compiler/brw_fs_nir.cpp
index d5a05aacdf..6d70d74400 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;
More information about the mesa-commit
mailing list