[Piglit] [PATCH 6/8] glsl-1.50: make sure 'in' interface blocks are rejected for VS
Paul Berry
stereotype441 at gmail.com
Fri Feb 22 10:18:29 PST 2013
On 17 February 2013 10:31, Jordan Justen <jordan.l.justen at intel.com> wrote:
> Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
> ---
>
> nVidia binary drivers seem to fail the 'no instance'
> version. (They don't flag a compiler error.) Did I
> misinterpret the spec?
>
I noticed that too. Your interpretation of the spec agrees with mine.
>
> .../interface-blocks-in-block-no-instance.vert | 16
> ++++++++++++++++
> .../glsl-1.50/compiler/interface-blocks-in-block.vert | 16
> ++++++++++++++++
> 2 files changed, 32 insertions(+)
> create mode 100644
> tests/spec/glsl-1.50/compiler/interface-blocks-in-block-no-instance.vert
> create mode 100644
> tests/spec/glsl-1.50/compiler/interface-blocks-in-block.vert
>
> diff --git
> a/tests/spec/glsl-1.50/compiler/interface-blocks-in-block-no-instance.vert
> b/tests/spec/glsl-1.50/compiler/interface-blocks-in-block-no-instance.vert
> new file mode 100644
> index 0000000..9d44fd3
> --- /dev/null
> +++
> b/tests/spec/glsl-1.50/compiler/interface-blocks-in-block-no-instance.vert
> @@ -0,0 +1,16 @@
> +// [config]
> +// expect_result: fail
> +// glsl_version: 1.50
> +// check_link: true
> +// [end config]
> +
> +#version 150
> +
> +in block {
> + vec4 iface_var;
> +};
> +
> +void main()
> +{
> +}
> +
> diff --git a/tests/spec/glsl-1.50/compiler/interface-blocks-in-block.vert
> b/tests/spec/glsl-1.50/compiler/interface-blocks-in-block.vert
> new file mode 100644
> index 0000000..d1cc256
> --- /dev/null
> +++ b/tests/spec/glsl-1.50/compiler/interface-blocks-in-block.vert
> @@ -0,0 +1,16 @@
> +// [config]
> +// expect_result: fail
> +// glsl_version: 1.50
> +// check_link: true
> +// [end config]
> +
> +#version 150
> +
> +in block {
> + vec4 iface_var;
> +} inst;
> +
> +void main()
> +{
> +}
> +
> --
> 1.7.10.4
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20130222/30ad8d18/attachment.html>
More information about the Piglit
mailing list