[Piglit] [PATCH V2 9/9] tests/spec: ARB_arrays_of_arrays builtin test
Timothy Arceri
t_arceri at yahoo.com.au
Tue Jan 14 00:20:07 PST 2014
---
.../compiler/gl_TexCoord-invalid-multidim.vert | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/gl_TexCoord-invalid-multidim.vert
diff --git a/tests/spec/arb_arrays_of_arrays/compiler/gl_TexCoord-invalid-multidim.vert b/tests/spec/arb_arrays_of_arrays/compiler/gl_TexCoord-invalid-multidim.vert
new file mode 100644
index 0000000..03f4e29
--- /dev/null
+++ b/tests/spec/arb_arrays_of_arrays/compiler/gl_TexCoord-invalid-multidim.vert
@@ -0,0 +1,17 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * require_extensions: GL_ARB_arrays_of_arrays
+ * [end config]
+ *
+ * From page 54 (page 60 of the PDF) of the GLSL 1.20 spec:
+ *
+ * "The size [of gl_TexCoord] can be at most
+ * gl_MaxTextureCoords."
+ */
+#version 120
+#extension GL_ARB_arrays_of_arrays: enable
+
+varying vec4 gl_TexCoord[gl_MaxTextureCoords][1];
+
+void main() { gl_Position = vec4(0.0); }
--
1.7.9.5
More information about the Piglit
mailing list