mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-20 13:10:24 +01:00
nir: fix constant-folding of 64-bit fpow
We need to do full pow if 64-bit, and we can do fpow() otherwise. Not the other way around. Fixes:9076c4e289("nir: update opcode definitions for different bit sizes") Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22774> (cherry picked from commit955797d015)
This commit is contained in:
parent
a6739ce185
commit
2fc6efddd1
2 changed files with 2 additions and 2 deletions
|
|
@ -7444,7 +7444,7 @@
|
|||
"description": "nir: fix constant-folding of 64-bit fpow",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "9076c4e289de0debf1fb2a7237bdeb9c11002347",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -907,7 +907,7 @@ binop("fmax", tfloat, _2src_commutative + associative, "fmax(src0, src1)")
|
|||
binop("imax", tint, _2src_commutative + associative, "src1 > src0 ? src1 : src0")
|
||||
binop("umax", tuint, _2src_commutative + associative, "src1 > src0 ? src1 : src0")
|
||||
|
||||
binop("fpow", tfloat, "", "bit_size == 64 ? powf(src0, src1) : pow(src0, src1)")
|
||||
binop("fpow", tfloat, "", "bit_size == 64 ? pow(src0, src1) : powf(src0, src1)")
|
||||
|
||||
binop_horiz("pack_half_2x16_split", 1, tuint32, 1, tfloat32, 1, tfloat32,
|
||||
"pack_half_1x16(src0.x) | (pack_half_1x16(src1.x) << 16)")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue