mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
nir: i32csel opcodes should compare with integer zero
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com> Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com> Noticed-by: Georg Lehmann <dadschoorse@gmail.com> Fixes:0f5b3c37c5("nir: Add opcodes for fused comp + csel and optimizations") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17048> (cherry picked from commitccd18ec4f3)
This commit is contained in:
parent
4fbc8fb28e
commit
ccad18ff9e
2 changed files with 3 additions and 3 deletions
|
|
@ -328,7 +328,7 @@
|
|||
"description": "nir: i32csel opcodes should compare with integer zero",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "0f5b3c37c5d757f6ffe994bae24071c0462bb13f"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1019,8 +1019,8 @@ opcode("b16csel", 0, tuint, [0, 0, 0],
|
|||
opcode("b32csel", 0, tuint, [0, 0, 0],
|
||||
[tbool32, tuint, tuint], False, "", "src0 ? src1 : src2")
|
||||
|
||||
triop("i32csel_gt", tint32, "", "(src0 > 0.0f) ? src1 : src2")
|
||||
triop("i32csel_ge", tint32, "", "(src0 >= 0.0f) ? src1 : src2")
|
||||
triop("i32csel_gt", tint32, "", "(src0 > 0) ? src1 : src2")
|
||||
triop("i32csel_ge", tint32, "", "(src0 >= 0) ? src1 : src2")
|
||||
|
||||
triop("fcsel_gt", tfloat32, "", "(src0 > 0.0f) ? src1 : src2")
|
||||
triop("fcsel_ge", tfloat32, "", "(src0 >= 0.0f) ? src1 : src2")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue