Reviewed-by: Nicolai Hähnle <[email protected]>

On 26.04.2017 18:28, Samuel Pitoiset wrote:
Signed-off-by: Samuel Pitoiset <[email protected]>
---
 .../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.
_______________________________________________
Piglit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to