From 9ebbed6ddcc078562ebc6361604f00e32ffa0b0c Mon Sep 17 00:00:00 2001 From: Jesse Natalie Date: Mon, 8 Jun 2020 05:54:53 -0700 Subject: [PATCH] nir: Add fisnormal op Reviewed-by: Alyssa Rosenzweig Reviewed-by: Karol Herbst Part-of: --- 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)") -- 2.30.2