[Piglit] [PATCH] glsl-1.50: Add test for geometry shader with unused outputs
Józef Kucia
joseph.kucia at gmail.com
Wed Sep 19 19:07:03 UTC 2018
Reproduces a GPU hang on radeonsi.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107857
Signed-off-by: Józef Kucia <joseph.kucia at gmail.com>
---
.../geometry/gs-point-unused-outputs.shader_test | 40 ++++++++++++++++++++++
1 file changed, 40 insertions(+)
create mode 100644 tests/spec/glsl-1.50/execution/geometry/gs-point-unused-outputs.shader_test
diff --git a/tests/spec/glsl-1.50/execution/geometry/gs-point-unused-outputs.shader_test b/tests/spec/glsl-1.50/execution/geometry/gs-point-unused-outputs.shader_test
new file mode 100644
index 000000000000..4001e9749575
--- /dev/null
+++ b/tests/spec/glsl-1.50/execution/geometry/gs-point-unused-outputs.shader_test
@@ -0,0 +1,40 @@
+[require]
+GLSL >= 1.50
+
+[vertex shader]
+#version 150
+
+in vec4 pos;
+out vec4 color;
+
+void main() {
+ gl_Position = pos;
+ color = vec4(1, 1, 1, 1);
+}
+
+[geometry shader]
+#version 150
+
+layout (points) in;
+layout (points, max_vertices = 1) out;
+
+in vec4 color[];
+out vec4 out_position;
+out vec4 out_color;
+
+void main() {
+ out_position = gl_in[0].gl_Position;
+ out_color = color[0];
+ EmitVertex();
+}
+
+[vertex data]
+pos/float/4
+1.0 1.0 1.0 1.0
+1.0 1.0 1.0 1.0
+
+[test]
+clear color 1 1 1 1
+clear
+
+draw arrays GL_POINTS 0 2
--
2.16.4
More information about the Piglit
mailing list