[Piglit] [PATCH] arb_shader_image_load_store: add format-layout-with-non-image-type.frag compiler test
Samuel Pitoiset
samuel.pitoiset at gmail.com
Wed Apr 26 16:28:54 UTC 2017
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()
+{
+}
--
2.12.2
More information about the Piglit
mailing list