nir: Add fisfinite op
authorJesse Natalie <jenatali@microsoft.com>
Tue, 23 Jun 2020 22:22:29 +0000 (15:22 -0700)
committerJesse Natalie <jenatali@microsoft.com>
Mon, 17 Aug 2020 22:34:08 +0000 (15:34 -0700)
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>

src/compiler/nir/nir_opcodes.py

index d880c51eebce7d0af7b60796f156128e31501303..bd8e0cd09c2119cce8d32bc9130120e00224c39e 100644 (file)
@@ -1156,3 +1156,4 @@ binop("umul24", tint32, _2src_commutative + associative,
       "(((uint32_t)src0 << 8) >> 8) * (((uint32_t)src1 << 8) >> 8)")
 
 unop_convert("fisnormal", tbool1, tfloat, "isnormal(src0)")
       "(((uint32_t)src0 << 8) >> 8) * (((uint32_t)src1 << 8) >> 8)")
 
 unop_convert("fisnormal", tbool1, tfloat, "isnormal(src0)")
+unop_convert("fisfinite", tbool1, tfloat, "isfinite(src0)")