[Piglit] [PATCH 11/12] arb_shading_language_420pack: Test that duplicate parameter qualifiers is an error.
Kenneth Graunke
kenneth at whitecape.org
Thu Jul 18 17:58:36 PDT 2013
On 07/18/2013 01:35 PM, Matt Turner wrote:
> ---
> .../qualifiers/duplicate-const-parameter-qualifiers.vert | 14 ++++++++++++++
> .../qualifiers/duplicate-parameter-qualifiers.vert | 14 ++++++++++++++
> 2 files changed, 28 insertions(+)
> create mode 100644 tests/spec/arb_shading_language_420pack/compiler/qualifiers/duplicate-const-parameter-qualifiers.vert
> create mode 100644 tests/spec/arb_shading_language_420pack/compiler/qualifiers/duplicate-parameter-qualifiers.vert
>
> diff --git a/tests/spec/arb_shading_language_420pack/compiler/qualifiers/duplicate-const-parameter-qualifiers.vert b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/duplicate-const-parameter-qualifiers.vert
> new file mode 100644
> index 0000000..5a1ead6
> --- /dev/null
> +++ b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/duplicate-const-parameter-qualifiers.vert
> @@ -0,0 +1,14 @@
> +/* [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:
> + *
> + * "The layout qualifier is the only qualifier that can appear more than
> + * once."
> + */
> +#version 130
> +#extension GL_ARB_shading_language_420pack: enable
> +void a(const const float x) {}
> diff --git a/tests/spec/arb_shading_language_420pack/compiler/qualifiers/duplicate-parameter-qualifiers.vert b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/duplicate-parameter-qualifiers.vert
> new file mode 100644
> index 0000000..4f6a11a
> --- /dev/null
> +++ b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/duplicate-parameter-qualifiers.vert
> @@ -0,0 +1,14 @@
> +/* [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:
> + *
> + * "The layout qualifier is the only qualifier that can appear more than
> + * once."
> + */
> +#version 130
> +#extension GL_ARB_shading_language_420pack: enable
> +void a(in in float x) {}
>
Weird spec reference...since layout qualifiers aren't allowed as
function parameters...but I'm not seeing anything better.
--Ken
More information about the Piglit
mailing list