[Piglit] [PATCH 5/5] generated_tests: Add testing for GLSL 1.40 inverse().
Paul Berry
stereotype441 at gmail.com
Wed May 2 15:30:31 PDT 2012
On 18 April 2012 18:29, Eric Anholt <eric at anholt.net> wrote:
> ---
> generated_tests/builtin_function.py | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/generated_tests/builtin_function.py
> b/generated_tests/builtin_function.py
> index 7e93bea..902a198 100644
> --- a/generated_tests/builtin_function.py
> +++ b/generated_tests/builtin_function.py
> @@ -1047,7 +1047,7 @@ def
> _make_vector_or_matrix_test_vectors(test_suite_dict):
> np.array([1.67, 0.66, 1.87]),
> ]
> norm_floats_vecs = [_normalize(x) for x in nz_floats_vecs]
> - mats = [
> + squaremats = [
> np.array([[ 1.60, 0.76],
> [ 1.53, -1.00]]), # mat2
> np.array([[-0.13, -0.87],
> @@ -1066,6 +1066,8 @@ def
> _make_vector_or_matrix_test_vectors(test_suite_dict):
> [ 1.60, -0.32, 0.51, -1.84],
> [ 1.25, 0.45, 1.90, -0.72],
> [-0.16, 0.45, -0.88, 0.39]]), # mat4
> + ]
> + mats = squaremats + [
> np.array([[ 0.09, 1.30, 1.25],
> [-1.19, 0.08, 1.08]]), # mat3x2
> np.array([[-0.36, -1.08, -0.60],
> @@ -1184,6 +1186,9 @@ def
> _make_vector_or_matrix_test_vectors(test_suite_dict):
> f('transpose', 1, '1.20', np.transpose, None, [mats])
> f('any', 1, '1.10', any, None, [bvecs])
> f('all', 1, '1.10', all, None, [bvecs])
> +
> + f('inverse', 1, '1.40', np.linalg.inv, None, [squaremats])
> +
> _make_vector_or_matrix_test_vectors(test_suite)
>
>
> --
> 1.7.10
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit
>
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20120502/823ac0ef/attachment.htm>
More information about the Piglit
mailing list