mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
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 <siglesias@igalia.com> Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
This commit is contained in:
parent
2abc6299bf
commit
dba4d0a319
1 changed files with 2 additions and 2 deletions
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue