summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/glsl/nir/nir_opcodes.py2
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);
""")