mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 22:20:09 +01:00
nir: Avoid double promotion.
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
This commit is contained in:
parent
c1da15709a
commit
4251ccb47b
1 changed files with 2 additions and 2 deletions
|
|
@ -474,10 +474,10 @@ else
|
|||
""")
|
||||
|
||||
opcode("ldexp", 0, tfloat, [0, 0], [tfloat, tint], "", """
|
||||
dst = ldexp(src0, src1);
|
||||
dst = ldexpf(src0, src1);
|
||||
/* flush denormals to zero. */
|
||||
if (!isnormal(dst))
|
||||
dst = copysign(0.0f, src0);
|
||||
dst = copysignf(0.0f, src0);
|
||||
""")
|
||||
|
||||
# Combines the first component of each input to make a 2-component vector.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue