Allow a tolerance for results of sqrt
authorGraeme Leese <gleese@broadcom.com>
Wed, 9 Jan 2019 16:21:05 +0000 (16:21 +0000)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 11 Jan 2019 08:53:51 +0000 (03:53 -0500)
The tolerance added to the test is around 5 ULP.

Components: Vulkan
VK-GL-CTS Issue: 1546
Affects: dEQP-VK.vkrunner-example.sqrt_*

Change-Id: Idfb6f8485d10a29cf0c4c46355df1df1008298df
(cherry picked from commit 215b2e3f4424e4568cb19c290d82fe7c48cb1b8b)

external/vulkancts/data/vulkan/vkrunner/example/sqrt.shader_test

index cbeaac3..9a1fb1d 100644 (file)
@@ -25,4 +25,5 @@ uniform float 0 <INPUT>
 compute 1 1 1
 
 # Probe that we got the expected value
-probe ssbo float 0 0 == <OUTPUT>
+tolerance 0.00006% 0.00006% 0.00006% 0.00006%
+probe ssbo float 0 0 ~= <OUTPUT>