nir/opcodes: fisfinite32 should return bool32
Otherwise constant-folding will fold it to 0/1 instead of 0/~0.
Fixes: 330e28155f
("nir: add 32-bit bool of fisfinite")
Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15984>
This commit is contained in:

committed by
Marge Bot

parent
319d87846c
commit
5c9e4d400a
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user