diff --git a/src/compiler/nir/nir_opcodes.py b/src/compiler/nir/nir_opcodes.py index 9907b8c0ccb..9d159306563 100644 --- a/src/compiler/nir/nir_opcodes.py +++ b/src/compiler/nir/nir_opcodes.py @@ -928,11 +928,11 @@ opcode("fdph_replicated", 0, tfloat, [3, 4], [tfloat, tfloat], False, "", "src0.x * src1.x + src0.y * src1.y + src0.z * src1.z + src1.w") binop("fmin", tfloat, _2src_commutative + associative, "fmin(src0, src1)") -binop("imin", tint, _2src_commutative + associative, "src1 > src0 ? src0 : src1") -binop("umin", tuint, _2src_commutative + associative, "src1 > src0 ? src0 : src1") +binop("imin", tint, _2src_commutative + associative, "MIN2(src0, src1)") +binop("umin", tuint, _2src_commutative + associative, "MIN2(src0, src1)") 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("imax", tint, _2src_commutative + associative, "MAX2(src0, src1)") +binop("umax", tuint, _2src_commutative + associative, "MAX2(src0, src1)") binop("fpow", tfloat, "", "bit_size == 64 ? pow(src0, src1) : powf(src0, src1)")