[Piglit] [PATCH 09/15] arb_tessellation_shader: Compile test for simple shaders.

Fabian Bieler fabianbieler at fastmail.fm
Mon Mar 24 15:02:48 PDT 2014


Signed-off-by: Fabian Bieler <fabianbieler at fastmail.fm>
---
 tests/spec/arb_tessellation_shader/compiler/sanity.tesc | 16 ++++++++++++++++
 tests/spec/arb_tessellation_shader/compiler/sanity.tese | 12 ++++++++++++
 2 files changed, 28 insertions(+)
 create mode 100644 tests/spec/arb_tessellation_shader/compiler/sanity.tesc
 create mode 100644 tests/spec/arb_tessellation_shader/compiler/sanity.tese

diff --git a/tests/spec/arb_tessellation_shader/compiler/sanity.tesc b/tests/spec/arb_tessellation_shader/compiler/sanity.tesc
new file mode 100644
index 0000000..4642478
--- /dev/null
+++ b/tests/spec/arb_tessellation_shader/compiler/sanity.tesc
@@ -0,0 +1,16 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.50
+// require_extensions: GL_ARB_tessellation_shader
+// check_link: true
+// [end config]
+
+#version 150
+#extension GL_ARB_tessellation_shader: require
+layout(vertices = 3) out;
+
+void main() {
+    gl_out[gl_InvocationID].gl_Position = vec4(0.0);
+    gl_TessLevelOuter = float[4](1.0, 1.0, 1.0, 1.0);
+    gl_TessLevelInner = float[2](1.0, 1.0);
+}
diff --git a/tests/spec/arb_tessellation_shader/compiler/sanity.tese b/tests/spec/arb_tessellation_shader/compiler/sanity.tese
new file mode 100644
index 0000000..36466d9
--- /dev/null
+++ b/tests/spec/arb_tessellation_shader/compiler/sanity.tese
@@ -0,0 +1,12 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.50
+// require_extensions: GL_ARB_tessellation_shader
+// check_link: true
+// [end config]
+
+#version 150
+#extension GL_ARB_tessellation_shader: require
+layout(triangles) in;
+
+void main() { gl_Position = vec4(0.0);}
-- 
1.8.3.2



More information about the Piglit mailing list