Skip to content
Snippets Groups Projects
Commit 5c9e4d40 authored by Faith Ekstrand's avatar Faith Ekstrand :speech_balloon: Committed by Marge Bot
Browse files

nir/opcodes: fisfinite32 should return bool32


Otherwise constant-folding will fold it to 0/1 instead of 0/~0.

Fixes: 330e2815 ("nir: add 32-bit bool of fisfinite")
Reviewed-by: default avatarAlyssa Rosenzweig <alyssa@collabora.com>
Part-of: <mesa/mesa!15984>
parent 319d8784
No related branches found
No related tags found
No related merge requests found
......@@ -1292,7 +1292,7 @@ binop("umul24_relaxed", tuint32, _2src_commutative + associative, "src0 * src1")
unop_convert("fisnormal", tbool1, tfloat, "isnormal(src0)")
unop_convert("fisfinite", tbool1, tfloat, "isfinite(src0)")
unop_convert("fisfinite32", tint32, tfloat, "isfinite(src0)")
unop_convert("fisfinite32", tbool32, tfloat, "isfinite(src0)")
# 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