summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2015-07-12 12:37:00 -0700
committerMatt Turner <mattst88@gmail.com>2015-07-29 09:34:51 -0700
commit4251ccb47b79c719918e7c372aebb6b2d9719922 (patch)
treecec7afcef8a7a893f42719a6d0956a75d6532d38
parentc1da15709a0c0c2775bd9e534f67c60f7dc95ce8 (diff)
nir: Avoid double promotion.
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
-rw-r--r--src/glsl/nir/nir_opcodes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/nir/nir_opcodes.py b/src/glsl/nir/nir_opcodes.py
index 56e96d9121..df5b7e2d51 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.