[Piglit] [PATCH] [RFC] arb_gpu_shader_fp64: add initial generated tests

Dylan Baker baker.dylan.c at gmail.com
Wed Apr 9 23:24:07 PDT 2014


On Thursday, April 10, 2014 02:49:08 PM Dave Airlie wrote:
> From: Dave Airlie <airlied at redhat.com>
> 
> (just writing tests for something while fglrx was installed).
> 
> This creates a bunch of built-in tests for GLSL 4.00,
> corresponding to the builtin uniform and constant array size tests.
> 
> I copied the test generators into new files, as I wasn't really sure how
> to separate the float and double generation, maybe some sort of force double
> mode to generate the correct code, would need advice of original author.
> 
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
>  generated_tests/CMakeLists.txt                     |   12 +-
>  generated_tests/builtin_function_fp64.py           | 1208
> ++++++++++++++++++++ generated_tests/gen_builtin_uniform_tests_fp64.py  | 
> 648 +++++++++++ .../gen_constant_array_size_tests_fp64.py          |  269
> +++++
>  4 files changed, 2136 insertions(+), 1 deletion(-)
>  create mode 100644 generated_tests/builtin_function_fp64.py
>  create mode 100644 generated_tests/gen_builtin_uniform_tests_fp64.py
>  create mode 100644 generated_tests/gen_constant_array_size_tests_fp64.py
> 
> diff --git a/generated_tests/CMakeLists.txt b/generated_tests/CMakeLists.txt
> index c23709e..004ebac 100644
> --- a/generated_tests/CMakeLists.txt
> +++ b/generated_tests/CMakeLists.txt
> @@ -69,6 +69,14 @@ piglit_make_generated_tests(
>  piglit_make_generated_tests(
>  	interpolation-qualifier-built-in-variable.list
>  	interpolation-qualifier-built-in-variable.py)
> +piglit_make_generated_tests(
> +	builtin_uniform_tests_fp64.list
> +	gen_builtin_uniform_tests_fp64.py
> +	builtin_function_fp64.py)
> +piglit_make_generated_tests(
> +	constant_array_size_tests_fp64.list
> +	gen_constant_array_size_tests_fp64.py
> +	builtin_function_fp64.py)
> 
>  # Add a "gen-tests" target that can be used to generate all the
>  # tests without doing any other compilation.
> @@ -85,4 +93,6 @@ add_custom_target(gen-tests ALL
>  		texture_query_lod_tests.list
>  		shader_bit_encoding_tests.list
>  		uniform-initializer_tests.list
> -		interpolation-qualifier-built-in-variable.list)
> +		interpolation-qualifier-built-in-variable.list
> +		builtin_uniform_tests_fp64.list
> +		constant_array_size_tests_fp64.list)
> diff --git a/generated_tests/builtin_function_fp64.py
> b/generated_tests/builtin_function_fp64.py new file mode 100644
> index 0000000..268244f
> --- /dev/null
> +++ b/generated_tests/builtin_function_fp64.py
> @@ -0,0 +1,1208 @@
> +# coding=utf-8
> +#
> +# Copyright © 2011 Intel Corporation

copy and paste error?

[snip]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20140409/7f92df32/attachment.sig>


More information about the Piglit mailing list