[Piglit] [PATCH] arb_shader_image_load_store: add format-layout-with-non-image-type.frag compiler test

Nicolai Hähnle nhaehnle at gmail.com
Thu Apr 27 19:53:54 UTC 2017


Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

On 26.04.2017 18:28, Samuel Pitoiset wrote:
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
>  .../format-layout-with-non-image-type.frag         | 24 ++++++++++++++++++++++
>  1 file changed, 24 insertions(+)
>  create mode 100644 tests/spec/arb_shader_image_load_store/compiler/format-layout-with-non-image-type.frag
>
> diff --git a/tests/spec/arb_shader_image_load_store/compiler/format-layout-with-non-image-type.frag b/tests/spec/arb_shader_image_load_store/compiler/format-layout-with-non-image-type.frag
> new file mode 100644
> index 000000000..e072cba0d
> --- /dev/null
> +++ b/tests/spec/arb_shader_image_load_store/compiler/format-layout-with-non-image-type.frag
> @@ -0,0 +1,24 @@
> +// [config]
> +// expect_result: fail
> +// glsl_version: 3.30
> +// require_extensions: GL_ARB_shader_image_load_store
> +// [end config]
> +
> +#version 330
> +#extension GL_ARB_shader_image_load_store: enable
> +
> +// From Section 4.4.6.2 (Format Layout Qualifiers) of the GLSL 4.50 spec:
> +//
> +// "Format layout qualifiers can be used on image variable declarations
> +//  (those declared with a basic type having “image” in its keyword)."
> +//
> +// Easy enough to infer that format layout qualifiers should not be used with
> +// non-image types.
> +
> +uniform Block {
> +	layout (r32f) int x;
> +};
> +
> +void main()
> +{
> +}
>


-- 
Lerne, wie die Welt wirklich ist,
Aber vergiss niemals, wie sie sein sollte.


More information about the Piglit mailing list