From: Matt Turner Date: Sun, 12 Jul 2015 19:37:00 +0000 (-0700) Subject: nir: Avoid double promotion. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4251ccb47b79c719918e7c372aebb6b2d9719922;p=mesa.git nir: Avoid double promotion. Reviewed-by: Iago Toral Quiroga --- diff --git a/src/glsl/nir/nir_opcodes.py b/src/glsl/nir/nir_opcodes.py index 56e96d9121e..df5b7e2d517 100644 --- a/src/glsl/nir/nir_opcodes.py +++ b/src/glsl/nir/nir_opcodes.py @@ -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.