mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
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> (cherry picked from commit5c9e4d400a)
This commit is contained in:
parent
a80f8a5ed0
commit
f48a3cffe7
2 changed files with 2 additions and 2 deletions
|
|
@ -1588,7 +1588,7 @@
|
||||||
"description": "nir/opcodes: fisfinite32 should return bool32",
|
"description": "nir/opcodes: fisfinite32 should return bool32",
|
||||||
"nominated": true,
|
"nominated": true,
|
||||||
"nomination_type": 1,
|
"nomination_type": 1,
|
||||||
"resolution": 0,
|
"resolution": 1,
|
||||||
"main_sha": null,
|
"main_sha": null,
|
||||||
"because_sha": "330e28155f79b533a72fc3376fb54ffbf245b458"
|
"because_sha": "330e28155f79b533a72fc3376fb54ffbf245b458"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1292,7 +1292,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)")
|
unop_convert("fisfinite32", tbool32, tfloat, "isfinite(src0)")
|
||||||
|
|
||||||
# vc4-specific opcodes
|
# vc4-specific opcodes
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue