[Piglit] [PATCH 2/2] gs: Test that geometry shader input declaration rules don't apply to outputs.
Paul Berry
stereotype441 at gmail.com
Mon Aug 12 06:38:38 PDT 2013
---
.../gs-output-array-inconsistent-with-input.geom | 27 ++++++++++++++++++++++
1 file changed, 27 insertions(+)
create mode 100644 tests/spec/glsl-1.50/compiler/gs-output-array-inconsistent-with-input.geom
diff --git a/tests/spec/glsl-1.50/compiler/gs-output-array-inconsistent-with-input.geom b/tests/spec/glsl-1.50/compiler/gs-output-array-inconsistent-with-input.geom
new file mode 100644
index 0000000..5c38db4
--- /dev/null
+++ b/tests/spec/glsl-1.50/compiler/gs-output-array-inconsistent-with-input.geom
@@ -0,0 +1,27 @@
+// Verify that geometry shader output arrays can be declared, and need
+// not follow the size consistency rules that geometry shader input
+// arrays need to follow.
+//
+// [config]
+// expect_result: pass
+// glsl_version: 1.50
+// check_link: false
+// [end config]
+
+#version 150
+
+layout(triangles) in;
+
+in vec4 v1[3];
+
+/* The following declarations would be errors if they were inputs */
+out vec4 v2[2];
+out blk1 {
+ out vec4 v3[2];
+};
+out blk2 {
+ out vec4 v[2];
+} ifc1;
+out blk3 {
+ out vec4 v;
+} ifc2[2];
--
1.8.3.4
More information about the Piglit
mailing list