[Piglit] [PATCH 4/4] GLSL 1.50: Test that layout qualifier id's are not case sensitive

Paul Berry stereotype441 at gmail.com
Thu Aug 8 15:42:27 PDT 2013


On 6 August 2013 10:01, Nicholas Mack <nichmack at gmail.com> wrote:

> ---
>  .../glsl-1.50/compiler/layout-not-case-sensitive.frag  | 18
> ++++++++++++++++++
>  1 file changed, 18 insertions(+)
>  create mode 100644
> tests/spec/glsl-1.50/compiler/layout-not-case-sensitive.frag
>
> diff --git a/tests/spec/glsl-1.50/compiler/layout-not-case-sensitive.frag
> b/tests/spec/glsl-1.50/compiler/layout-not-case-sensitive.frag
> new file mode 100644
> index 0000000..dcfd520
> --- /dev/null
> +++ b/tests/spec/glsl-1.50/compiler/layout-not-case-sensitive.frag
> @@ -0,0 +1,18 @@
> +// [config]
> +// expect_result: pass
> +// glsl_version: 1.50
> +// check_link: true
> +// [end config]
> +//
> +// Section 4.3.8(Layout Qualifiers) of the GLSL 1.50 spec says:
> +// "Input layout qualifiers are not case sensitive, unless explicitly
> noted
> +//  otherwise."
> +
> +#version 150
> +
> +layout(PIXEL_center_inTEger) in vec4 gl_FragCoord;
> +
> +void main()
> +{
> +       gl_FragColor = vec4(0., 1., 0., 1.);
> +}
> --
> 1.8.3.1
>

We should also test:

- At least one geometry shader input primitive type declaration
- At least one geometry shader output primitive type declaration
- The geometry shader "max_vertices" output declaration

Since Mesa handles those using different code than the gl_FragCoord layout
specifier.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20130808/bfbc3fb0/attachment.html>


More information about the Piglit mailing list