[Piglit] [PATCH 04/12] arb_shading_language_420pack: Test that interp and aux qualifiers can't be used on VS inputs.

Kenneth Graunke kenneth at whitecape.org
Thu Jul 18 17:52:14 PDT 2013


On 07/18/2013 01:35 PM, Matt Turner wrote:
> ---
>   .../compiler/qualifiers/no-aux-qual-on-vs-input.vert    | 17 +++++++++++++++++
>   .../qualifiers/no-interpolation-qual-on-vs-input.vert   | 17 +++++++++++++++++
>   2 files changed, 34 insertions(+)
>   create mode 100644 tests/spec/arb_shading_language_420pack/compiler/qualifiers/no-aux-qual-on-vs-input.vert
>   create mode 100644 tests/spec/arb_shading_language_420pack/compiler/qualifiers/no-interpolation-qual-on-vs-input.vert
>
> diff --git a/tests/spec/arb_shading_language_420pack/compiler/qualifiers/no-aux-qual-on-vs-input.vert b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/no-aux-qual-on-vs-input.vert
> new file mode 100644
> index 0000000..509e86d
> --- /dev/null
> +++ b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/no-aux-qual-on-vs-input.vert
> @@ -0,0 +1,17 @@
> +/* [config]
> + * expect_result: fail
> + * glsl_version: 1.30
> + * require_extensions: GL_ARB_shading_language_420pack
> + * [end config]
> + *
> + * From the GL_ARB_shading_language_420pack spec:
> + *
> + *     "It is an error to use any auxiliary or interpolation qualifiers on a
> + *      vertex shader input."
> + *
> + * Test that an interpolation qualifier on a vertex shader input results in a
> + * compile error.

Comment is wrong, this is an auxiliary storage qualifier.

> + */
> +#version 130
> +#extension GL_ARB_shading_language_420pack: enable
> +centroid in float x;
> diff --git a/tests/spec/arb_shading_language_420pack/compiler/qualifiers/no-interpolation-qual-on-vs-input.vert b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/no-interpolation-qual-on-vs-input.vert
> new file mode 100644
> index 0000000..e3e086a
> --- /dev/null
> +++ b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/no-interpolation-qual-on-vs-input.vert
> @@ -0,0 +1,17 @@
> +/* [config]
> + * expect_result: fail
> + * glsl_version: 1.30
> + * require_extensions: GL_ARB_shading_language_420pack
> + * [end config]
> + *
> + * From the GL_ARB_shading_language_420pack spec:
> + *
> + *     "It is an error to use any auxiliary or interpolation qualifiers on a
> + *      vertex shader input."
> + *
> + * Test that an interpolation qualifier on a vertex shader input results in a
> + * compile error.
> + */
> +#version 130
> +#extension GL_ARB_shading_language_420pack: enable
> +flat in float x;
>



More information about the Piglit mailing list