projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1da157
)
nir: Avoid double promotion.
author
Matt Turner
<mattst88@gmail.com>
Sun, 12 Jul 2015 19:37:00 +0000
(12:37 -0700)
committer
Matt Turner
<mattst88@gmail.com>
Wed, 29 Jul 2015 16:34:51 +0000
(09:34 -0700)
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/glsl/nir/nir_opcodes.py
patch
|
blob
|
history
diff --git
a/src/glsl/nir/nir_opcodes.py
b/src/glsl/nir/nir_opcodes.py
index 56e96d9121ef12e54a618383adcfaf08f8afa50c..df5b7e2d517c2057328147c2a9ff462dd13e5013 100644
(file)
--- 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 = ldexp
f
(src0, src1);
/* flush denormals to zero. */
if (!isnormal(dst))
- dst = copysign(0.0f, src0);
+ dst = copysign
f
(0.0f, src0);
""")
# Combines the first component of each input to make a 2-component vector.