[Piglit] [PATCH 2/5] cl: Fix cospi return value
Jan Vesely
jano.vesely at gmail.com
Sun Oct 1 20:10:14 UTC 2017
cos(pi * 2k) = 1
Signed-off-by: Jan Vesely <jano.vesely at gmail.com>
---
generated_tests/gen_cl_math_builtins.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/generated_tests/gen_cl_math_builtins.py b/generated_tests/gen_cl_math_builtins.py
index d1e0e3c24..4df4918e6 100644
--- a/generated_tests/gen_cl_math_builtins.py
+++ b/generated_tests/gen_cl_math_builtins.py
@@ -234,7 +234,7 @@ tests = {
'arg_types' : [F, F],
'function_type': 'ttt',
'values' : [
- [1.0, cos(pi*pi/2), cos(pi*3*pi/2), cos(2*pi*pi), cos(pi*1.12345), cos(pi*pow(2,20)), cos(pi*pow(2,24)), cos(pi*pow(2,120)), float("nan")], # Result
+ [1.0, cos(pi*pi/2), cos(pi*3*pi/2), cos(2*pi*pi), cos(pi*1.12345), cos(pi*pow(2,20)), cos(pi*pow(2,24)), 1.0, float("nan")], # Result
[0.0, pi / 2, 3 * pi / 2, 2 * pi, 1.12345 , pow(2,20), pow(2,24), pow(2,120), float("nan")] # Arg0
],
'tolerance' : 4
--
2.13.6
More information about the Piglit
mailing list