summaryrefslogtreecommitdiff
path: root/tests/spec/arb_tessellation_shader/compiler/input-block-must-be-array-unnamed.tese
diff options
context:
space:
mode:
Diffstat (limited to 'tests/spec/arb_tessellation_shader/compiler/input-block-must-be-array-unnamed.tese')
-rw-r--r--tests/spec/arb_tessellation_shader/compiler/input-block-must-be-array-unnamed.tese16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/spec/arb_tessellation_shader/compiler/input-block-must-be-array-unnamed.tese b/tests/spec/arb_tessellation_shader/compiler/input-block-must-be-array-unnamed.tese
new file mode 100644
index 000000000..7994784b7
--- /dev/null
+++ b/tests/spec/arb_tessellation_shader/compiler/input-block-must-be-array-unnamed.tese
@@ -0,0 +1,16 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.50
+// require_extensions: GL_ARB_tessellation_shader
+// [end config]
+//
+// Per-vertex inputs to the tessellation evaluation shader must be arrays.
+// This test covers the case where the block has no instance name, which is
+// significant for Mesa's compiler.
+
+#version 150
+#extension GL_ARB_tessellation_shader: require
+
+in block {
+ vec4 x;
+}; /* not an array */