[Piglit] [PATCH 1/4] GLSL 1.50: Test that layout qualifier ids can be listed in any order

Nicholas Mack nichmack at gmail.com
Tue Aug 6 10:29:34 PDT 2013


---
 .../spec/glsl-1.50/compiler/layout-any-order-ids.frag | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 tests/spec/glsl-1.50/compiler/layout-any-order-ids.frag

diff --git a/tests/spec/glsl-1.50/compiler/layout-any-order-ids.frag b/tests/spec/glsl-1.50/compiler/layout-any-order-ids.frag
new file mode 100644
index 0000000..4e42b0d
--- /dev/null
+++ b/tests/spec/glsl-1.50/compiler/layout-any-order-ids.frag
@@ -0,0 +1,19 @@
+// [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:
+// "Generally, (layout-qualifiers) can be listed in any order. Order-dependent
+//  meanings exist only if explicitly (said otherwise)"
+
+#version 150
+
+layout(pixel_center_integer, origin_upper_left) in vec4 gl_FragCoord;
+layout(origin_upper_left, pixel_center_integer) in vec4 gl_FragCoord;
+
+void main()
+{
+	gl_FragColor = vec4(0., 1., 0., 1.);
+}
-- 
1.8.3.1



More information about the Piglit mailing list