[Piglit] [PATCH 2/2] arb_gpu_shader5: Add compiler tests to verify 'invocations' layout qualifier
Anuj Phogat
anuj.phogat at gmail.com
Wed Feb 12 10:11:21 PST 2014
Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
---
...rect-multiple-layout-qualifier-invocations.geom | 23 ++++++++++++++++++++++
...rect-multiple-layout-qualifier-invocations.geom | 23 ++++++++++++++++++++++
2 files changed, 46 insertions(+)
create mode 100644 tests/spec/arb_gpu_shader5/compiler/correct-multiple-layout-qualifier-invocations.geom
create mode 100644 tests/spec/arb_gpu_shader5/compiler/incorrect-multiple-layout-qualifier-invocations.geom
diff --git a/tests/spec/arb_gpu_shader5/compiler/correct-multiple-layout-qualifier-invocations.geom b/tests/spec/arb_gpu_shader5/compiler/correct-multiple-layout-qualifier-invocations.geom
new file mode 100644
index 0000000..d4ba22b
--- /dev/null
+++ b/tests/spec/arb_gpu_shader5/compiler/correct-multiple-layout-qualifier-invocations.geom
@@ -0,0 +1,23 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.50
+// check_link: false
+// [end config]
+//
+// ARB_gpu_shader5 spec says:
+// "If an invocation count is declared, all such declarations must
+// specify the same count."
+//
+// Tests for multiple declarations of layout qualifier 'invocations'.
+//
+
+#version 150
+#extension GL_ARB_gpu_shader5 : enable
+
+layout(points, invocations=4) in;
+layout(invocations=4) in;
+layout(triangle_strip, max_vertices=3) out;
+
+void main()
+{
+}
diff --git a/tests/spec/arb_gpu_shader5/compiler/incorrect-multiple-layout-qualifier-invocations.geom b/tests/spec/arb_gpu_shader5/compiler/incorrect-multiple-layout-qualifier-invocations.geom
new file mode 100644
index 0000000..951f694
--- /dev/null
+++ b/tests/spec/arb_gpu_shader5/compiler/incorrect-multiple-layout-qualifier-invocations.geom
@@ -0,0 +1,23 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.50
+// check_link: false
+// [end config]
+//
+// ARB_gpu_shader5 spec says:
+// "If an invocation count is declared, all such declarations must
+// specify the same count."
+//
+// Tests for multiple declarations of layout qualifier 'invocations'.
+//
+
+#version 150
+#extension GL_ARB_gpu_shader5 : enable
+
+layout(points, invocations=4) in;
+layout(invocations=3) in;
+layout(triangle_strip, max_vertices=3) out;
+
+void main()
+{
+}
--
1.8.3.1
More information about the Piglit
mailing list