diff options
author | Jason Ekstrand <jason.ekstrand@intel.com> | 2015-01-28 12:41:44 -0800 |
---|---|---|
committer | Jason Ekstrand <jason.ekstrand@intel.com> | 2015-01-28 13:19:47 -0800 |
commit | f0340ff625aa27c6470fe82e6c1bb04bf592bbe4 (patch) | |
tree | 40cf68c5c39361743b823bf132d6bb142bb4d8bb /src/glsl/nir | |
parent | 58e8468d113c7d3d4a59ea4a8d70fd45b78e85e6 (diff) | |
download | external_mesa3d-f0340ff625aa27c6470fe82e6c1bb04bf592bbe4.zip external_mesa3d-f0340ff625aa27c6470fe82e6c1bb04bf592bbe4.tar.gz external_mesa3d-f0340ff625aa27c6470fe82e6c1bb04bf592bbe4.tar.bz2 |
Revert "nir/opcodes: Use fpclassify() instead of isnormal() for ldexp"
This reverts commit d7d340fb2f68c46bd5a0008ecf53c6693e29c916.
We have an isnormal() implementation available, the only problem was that
we had the wrong return type (fixed in a later patch).
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88806
Acked-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/glsl/nir')
-rw-r--r-- | src/glsl/nir/nir_opcodes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/nir/nir_opcodes.py b/src/glsl/nir/nir_opcodes.py index 3f21539..f54a017 100644 --- 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 (fpclassify(dst) != FP_NORMAL) +if (!isnormal(dst)) dst = copysign(0.0f, src0); """) |