Mesa (master): nir: Add fisnormal op

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Aug 18 00:34:33 UTC 2020


Module: Mesa
Branch: master
Commit: 9ebbed6ddcc078562ebc6361604f00e32ffa0b0c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9ebbed6ddcc078562ebc6361604f00e32ffa0b0c

Author: Jesse Natalie <jenatali at microsoft.com>
Date:   Mon Jun  8 05:54:53 2020 -0700

nir: Add fisnormal op

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Reviewed-by: Karol Herbst <kherbst at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6355>

---

 src/compiler/nir/nir_opcodes.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/compiler/nir/nir_opcodes.py b/src/compiler/nir/nir_opcodes.py
index 7846bf2192c..d880c51eebc 100644
--- a/src/compiler/nir/nir_opcodes.py
+++ b/src/compiler/nir/nir_opcodes.py
@@ -1154,3 +1154,5 @@ triop("umad24", tuint32, _2src_commutative,
 # unsigned 24b multiply into 32b result uint
 binop("umul24", tint32, _2src_commutative + associative,
       "(((uint32_t)src0 << 8) >> 8) * (((uint32_t)src1 << 8) >> 8)")
+
+unop_convert("fisnormal", tbool1, tfloat, "isnormal(src0)")



More information about the mesa-commit mailing list