[Piglit] [PATCH] Make a version of isolines that uses a passthrough TCS.

Kenneth Graunke kenneth at whitecape.org
Thu May 26 08:05:26 UTC 2016


This exposes a bug in i965.
---
 .../execution/isoline-no-tcs.shader_test           | 41 ++++++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 tests/spec/arb_tessellation_shader/execution/isoline-no-tcs.shader_test

diff --git a/tests/spec/arb_tessellation_shader/execution/isoline-no-tcs.shader_test b/tests/spec/arb_tessellation_shader/execution/isoline-no-tcs.shader_test
new file mode 100644
index 0000000..84c7f3a
--- /dev/null
+++ b/tests/spec/arb_tessellation_shader/execution/isoline-no-tcs.shader_test
@@ -0,0 +1,41 @@
+# Check producing a single tessellated isoline doesn't give multiple lines
+[require]
+GLSL >= 1.50
+GL_ARB_tessellation_shader
+
+[vertex shader]
+
+void main()
+{
+}
+
+[tessellation evaluation shader]
+#extension GL_ARB_tessellation_shader: require
+layout(isolines, equal_spacing) in;
+flat out int good;
+
+void main()
+{
+	gl_Position = vec4(gl_TessCoord.xy * 2.0 - 1.0, 0.0, 1.0);
+	good = int(gl_TessCoord.y == 0.0);
+}
+
+
+[fragment shader]
+flat in int good;
+
+void main()
+{
+	if (bool(good))
+		gl_FragColor = vec4(0.0, 1.0, 0.0, 1.0);
+	else
+		gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);
+}
+
+[test]
+clear color 0.0 1.0 0.0 1.0
+clear
+patch parameter vertices 2
+patch parameter default level outer 1 4 0 0
+draw arrays GL_PATCHES 0 2
+probe all rgba 0.0 1.0 0.0 1.0
-- 
2.8.2



More information about the Piglit mailing list