nir: Add fisnormal op

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6355>
This commit is contained in:
Jesse Natalie
2020-06-08 05:54:53 -07:00
parent 199bea0fd8
commit 9ebbed6ddc

View File

@@ -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)")