[Piglit] [PATCH 1/8] glsl-1.50: new trivial GS test
Marek Olšák
maraeo at gmail.com
Mon Apr 10 21:01:36 UTC 2017
From: Marek Olšák <marek.olsak at amd.com>
---
.../glsl-1.50/execution/gs-trivial.shader_test | 44 ++++++++++++++++++++++
1 file changed, 44 insertions(+)
create mode 100644 tests/spec/glsl-1.50/execution/gs-trivial.shader_test
diff --git a/tests/spec/glsl-1.50/execution/gs-trivial.shader_test b/tests/spec/glsl-1.50/execution/gs-trivial.shader_test
new file mode 100644
index 0000000..48d1ec6
--- /dev/null
+++ b/tests/spec/glsl-1.50/execution/gs-trivial.shader_test
@@ -0,0 +1,44 @@
+[require]
+GL >= 3.1
+GLSL >= 1.50
+
+[vertex shader]
+#version 150
+
+void main()
+{
+}
+
+[geometry shader]
+#version 150
+
+layout(triangles) in;
+layout(triangle_strip, max_vertices = 4) out;
+
+void main()
+{
+ gl_Position = vec4(-1, -1, 0, 1);
+ EmitVertex();
+ gl_Position = vec4(-1, 1, 0, 1);
+ EmitVertex();
+ gl_Position = vec4( 1, -1, 0, 1);
+ EmitVertex();
+ gl_Position = vec4( 1, 1, 0, 1);
+ EmitVertex();
+}
+
+[fragment shader]
+#version 150
+
+out vec4 color;
+
+void main()
+{
+ color = vec4(0.0, 1.0, 0.0, 1.0);
+}
+
+[test]
+clear color 0.5 0.5 0.5 0.5
+clear
+draw rect -1 -1 2 2
+probe all rgba 0.0 1.0 0.0 1.0
--
2.7.4
More information about the Piglit
mailing list