mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01: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>
This commit is contained in:
parent
d455838081
commit
ccd18ec4f3
1 changed files with 2 additions and 2 deletions
|
|
@ -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