[Piglit] [PATCH] cl: Add sqrt tests
Aaron Watry
awatry at gmail.com
Sat Oct 26 00:40:47 CEST 2013
Pretty basic, but we didn't have any tests for this before...
Tested on r600g w/ CEDAR.
---
generated_tests/generate-cl-math-builtins.py | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/generated_tests/generate-cl-math-builtins.py b/generated_tests/generate-cl-math-builtins.py
index b6b4e43..150c412 100644
--- a/generated_tests/generate-cl-math-builtins.py
+++ b/generated_tests/generate-cl-math-builtins.py
@@ -57,6 +57,14 @@ tests = {
[1.0, -1.0, 0.0, -0.0, 0.0],
[0.5, -0.5, 0.0, -0.0, float("nan")]
]
+ },
+ 'sqrt' : {
+ 'arg_types': [F, F],
+ 'function_type': 'ttt',
+ 'values': [
+ [1.0, 2.0, 6.0, 2.5 , float("nan"), 4.0], # Result
+ [1.0, 4.0, 36.0, 6.25, float("nan"), 16.0], # Arg1
+ ]
}
}
--
1.8.3.2
More information about the Piglit
mailing list