Relax modf(Inf) fractional part verification
authorPyry Haulos <phaulos@google.com>
Wed, 15 Jul 2015 21:53:03 +0000 (14:53 -0700)
committerPyry Haulos <phaulos@google.com>
Wed, 15 Jul 2015 21:53:03 +0000 (14:53 -0700)
See Khronos bug 13907

Bug: 22512069
Change-Id: Ic608a8a520d34fe84c3a4c5b5d96d0623e6aebd0

modules/glshared/glsBuiltinPrecisionTests.cpp

index dd8aee1..35590f4 100644 (file)
@@ -3225,9 +3225,10 @@ protected:
                TCU_INTERVAL_APPLY_MONOTONE1(wholeIV, x, iargs.a, whole,
                                                                         deModf(x, &intPart); whole = intPart);
 
-               if ((ctx.format.hasInf() != YES) && !iargs.a.isFinite())
+               if (!iargs.a.isFinite())
                {
                        // Behavior on modf(Inf) not well-defined, allow anything as a fractional part
+                       // See Khronos bug 13907
                        fracIV |= TCU_NAN;
                }