diff --git a/.pick_status.json b/.pick_status.json index c63b84d0eda..9481b740c65 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -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" }, diff --git a/src/compiler/nir/nir_opcodes.py b/src/compiler/nir/nir_opcodes.py index a604451d3df..bb0c8dc7be6 100644 --- a/src/compiler/nir/nir_opcodes.py +++ b/src/compiler/nir/nir_opcodes.py @@ -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")