[Piglit] [PATCH 1/8] arb_gpu_shader_fp64: Adds GS preprocessor define test

Dave Airlie airlied at gmail.com
Thu Mar 17 00:28:28 UTC 2016


On 16 March 2016 at 01:50, Andres Gomez <agomez at igalia.com> wrote:
> Signed-off-by: Andres Gomez <agomez at igalia.com>

For completeness should we have tess and compute version of this test?

This test is

Reviewed-by: Dave Airlie <airlied at redhat.com>

Dave.

> ---
>  .../spec/arb_gpu_shader_fp64/preprocessor/define.geom | 19 +++++++++++++++++++
>  1 file changed, 19 insertions(+)
>  create mode 100644 tests/spec/arb_gpu_shader_fp64/preprocessor/define.geom
>
> diff --git a/tests/spec/arb_gpu_shader_fp64/preprocessor/define.geom b/tests/spec/arb_gpu_shader_fp64/preprocessor/define.geom
> new file mode 100644
> index 0000000..85dd9bf
> --- /dev/null
> +++ b/tests/spec/arb_gpu_shader_fp64/preprocessor/define.geom
> @@ -0,0 +1,19 @@
> +// [config]
> +// expect_result: pass
> +// glsl_version: 1.50
> +// require_extensions: GL_ARB_gpu_shader_fp64
> +// [end config]
> +
> +#version 150
> +#extension GL_ARB_gpu_shader_fp64: require
> +
> +#if !defined GL_ARB_gpu_shader_fp64
> +#  error GL_ARB_gpu_shader_fp64 is not defined
> +#elif GL_ARB_gpu_shader_fp64 != 1
> +#  error GL_ARB_gpu_shader_fp64 is not equal to 1
> +#endif
> +
> +/* Some compilers generate spurious errors if a shader does not contain
> + * any code or declarations.
> + */
> +int foo(void) { return 1; }
> --
> 2.1.0
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/piglit


More information about the Piglit mailing list