Skip to content
Snippets Groups Projects
Commit 330e2815 authored by Dave Airlie's avatar Dave Airlie
Browse files

nir: add 32-bit bool of fisfinite


Add the bool lowering as well.

Reviewed-by: Jesse Natalie's avatarJesse Natalie <jenatali@microsoft.com>
Part-of: <!12207>
parent cf39c3e1
No related branches found
No related tags found
Loading
...@@ -103,6 +103,8 @@ lower_alu_instr(nir_alu_instr *alu) ...@@ -103,6 +103,8 @@ lower_alu_instr(nir_alu_instr *alu)
case nir_op_bcsel: alu->op = nir_op_b32csel; break; case nir_op_bcsel: alu->op = nir_op_b32csel; break;
case nir_op_fisfinite: alu->op = nir_op_fisfinite32; break;
default: default:
assert(alu->dest.dest.ssa.bit_size > 1); assert(alu->dest.dest.ssa.bit_size > 1);
for (unsigned i = 0; i < op_info->num_inputs; i++) for (unsigned i = 0; i < op_info->num_inputs; i++)
......
...@@ -1245,6 +1245,7 @@ binop("umul24_relaxed", tuint32, _2src_commutative + associative, "src0 * src1") ...@@ -1245,6 +1245,7 @@ binop("umul24_relaxed", tuint32, _2src_commutative + associative, "src0 * src1")
unop_convert("fisnormal", tbool1, tfloat, "isnormal(src0)") unop_convert("fisnormal", tbool1, tfloat, "isnormal(src0)")
unop_convert("fisfinite", tbool1, tfloat, "isfinite(src0)") unop_convert("fisfinite", tbool1, tfloat, "isfinite(src0)")
unop_convert("fisfinite32", tint32, tfloat, "isfinite(src0)")
# vc4-specific opcodes # vc4-specific opcodes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment