Relax precision for atan2 built-in precision tests
authorJeff Leger <quic_jleger@quicinc.com>
Sun, 22 Oct 2017 15:54:31 +0000 (11:54 -0400)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 14 Dec 2017 09:35:19 +0000 (04:35 -0500)
The precision of atan2 is relaxed to 5 ULPs.

Affects:

 dEQP-VK.glsl.builtin.precision.atan2.*

Components:  Vulkan

VK_GL_CTS issue: 749

Change-Id: I146226019f77910d1401903f6e89292ff94c089d

external/vulkancts/modules/vulkan/shaderexecutor/vktShaderBuiltinPrecisionTests.cpp

index f55166c..9bb08d6 100644 (file)
@@ -2457,7 +2457,7 @@ protected:
                if (ctx.floatPrecision == glu::PRECISION_HIGHP)
                        return ctx.format.ulp(ret, 4096.0);
                else
-                       return ctx.format.ulp(ret, 2.0);
+                       return ctx.format.ulp(ret, 5.0);
        }
 
        // Codomain could be [-pi, pi], but that would probably be too strict.