nir/vtn: Support SpvOpIsFinite via fisfinite
authorJesse Natalie <jenatali@microsoft.com>
Tue, 23 Jun 2020 22:22:44 +0000 (15:22 -0700)
committerJesse Natalie <jenatali@microsoft.com>
Mon, 17 Aug 2020 22:34:11 +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/spirv/vtn_alu.c

index 986751697b5dd081a64e934666c4ae2f59dfcbf7..794f82eac449497a3c79c301a6915e22e63bc6af 100644 (file)
@@ -354,6 +354,7 @@ vtn_nir_alu_op_for_spirv_opcode(struct vtn_builder *b,
    case SpvOpDPdyCoarse:   return nir_op_fddy_coarse;
 
    case SpvOpIsNormal:     return nir_op_fisnormal;
+   case SpvOpIsFinite:     return nir_op_fisfinite;
 
    default:
       vtn_fail("No NIR equivalent: %u", opcode);