From: Samuel Iglesias Gonsálvez Date: Tue, 10 Jul 2018 11:17:05 +0000 (+0200) Subject: nir: fix fmin/fmax support for doubles X-Git-Tag: upstream/19.3.0~1869 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dba4d0a319f6938263e362a44201ed1099353cac;p=platform%2Fupstream%2Fmesa.git nir: fix fmin/fmax support for doubles Until now, it was using the floating point version of fmin/fmax, instead of the double version. Signed-off-by: Samuel Iglesias Gonsálvez Reviewed-by: Connor Abbott --- diff --git a/src/compiler/nir/nir_opcodes.py b/src/compiler/nir/nir_opcodes.py index 3325376..7818d9f 100644 --- a/src/compiler/nir/nir_opcodes.py +++ b/src/compiler/nir/nir_opcodes.py @@ -787,10 +787,10 @@ opcode("fdph", 1, tfloat, [3, 4], [tfloat, tfloat], False, "", opcode("fdph_replicated", 4, tfloat, [3, 4], [tfloat, tfloat], False, "", "src0.x * src1.x + src0.y * src1.y + src0.z * src1.z + src1.w") -binop("fmin", tfloat, "", "fminf(src0, src1)") +binop("fmin", tfloat, "", "fmin(src0, src1)") binop("imin", tint, _2src_commutative + associative, "src1 > src0 ? src0 : src1") binop("umin", tuint, _2src_commutative + associative, "src1 > src0 ? src0 : src1") -binop("fmax", tfloat, "", "fmaxf(src0, src1)") +binop("fmax", tfloat, "", "fmax(src0, src1)") binop("imax", tint, _2src_commutative + associative, "src1 > src0 ? src1 : src0") binop("umax", tuint, _2src_commutative + associative, "src1 > src0 ? src1 : src0")