projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6eb572
)
nir/opcodes: Use fpclassify() instead of isnormal() for ldexp
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Mon, 26 Jan 2015 22:21:15 +0000
(14:21 -0800)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Wed, 28 Jan 2015 11:42:41 +0000
(
03:42
-0800)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88806
Reviewed-by: Ian Romanick <ian.d.romanick@intel.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 f54a0176c0d78a5cba2726adcb78cee41c8424f9..3f215393d55561709493f721b0d41ef7d35572cd 100644
(file)
--- a/
src/glsl/nir/nir_opcodes.py
+++ b/
src/glsl/nir/nir_opcodes.py
@@
-480,7
+480,7
@@
else
opcode("ldexp", 0, tunsigned, [0, 0], [tfloat, tint], "", """
dst = ldexp(src0, src1);
/* flush denormals to zero. */
-if (
!isnormal(dst)
)
+if (
fpclassify(dst) != FP_NORMAL
)
dst = copysign(0.0f, src0);
""")