[Piglit] [PATCH 2/7] cl: Adjust tan expected values to account for fp32 rounding
Jan Vesely
jan.vesely at rutgers.edu
Fri Nov 3 18:11:10 UTC 2017
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
---
generated_tests/gen_cl_math_builtins.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/generated_tests/gen_cl_math_builtins.py b/generated_tests/gen_cl_math_builtins.py
index 726ac9652..5bbc72a0a 100644
--- a/generated_tests/gen_cl_math_builtins.py
+++ b/generated_tests/gen_cl_math_builtins.py
@@ -716,8 +716,8 @@ tests = {
'arg_types': [F, F],
'function_type': 'ttt',
'values': [
- [0.0, 1.0, 0.0, sqrt(3), -1.0, tan(2.234567), float("nan") ], # Result
- [0.0, pi/4, pi, pi/3, 3*pi/4, 2.234567 , float("nan") ], # Arg1
+ [0.0, 1.0, tan(M_PI_F), sqrt(3), -1.0, tan(2.234567), float("nan") ], # Result
+ [0.0, pi/4, M_PI_F, pi/3, 3*pi/4, 2.234567 , float("nan") ], # Arg1
],
'tolerance': 5
},
--
2.13.6
More information about the Piglit
mailing list