diff options
author | Jason Ekstrand <[email protected]> | 2015-01-26 14:21:15 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-01-28 03:42:41 -0800 |
commit | d7d340fb2f68c46bd5a0008ecf53c6693e29c916 (patch) | |
tree | 8388df70e5bbc97c1a3fb7fc2786c52a3a51a795 /src/glsl/nir | |
parent | d6eb572905e39c36168b8f5da240af961f9dde0a (diff) |
nir/opcodes: Use fpclassify() instead of isnormal() for ldexp
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88806
Reviewed-by: Ian Romanick <[email protected]>
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 f54a0176c0d..3f215393d55 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 (!isnormal(dst)) +if (fpclassify(dst) != FP_NORMAL) dst = copysign(0.0f, src0); """) |