On 6 August 2013 10:01, Nicholas Mack <[email protected]> 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.
_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to