[Piglit] [PATCH] glsl-es-3.00: Verify that unsized uniform blocks are an error
Ian Romanick
idr at freedesktop.org
Sat Dec 8 13:07:35 PST 2012
From: Ian Romanick <ian.d.romanick at intel.com>
I itend to squash this with the previous batch of GLSL ES 3.00 uniform
block tests when they get pushed.
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Cc: Kenneth Graunke <kenneth at whitecape.org>
---
.../interface-name-array-without-size.vert | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
create mode 100644 tests/spec/glsl-es-3.00/compiler/uniform_block/interface-name-array-without-size.vert
diff --git a/tests/spec/glsl-es-3.00/compiler/uniform_block/interface-name-array-without-size.vert b/tests/spec/glsl-es-3.00/compiler/uniform_block/interface-name-array-without-size.vert
new file mode 100644
index 0000000..caf91bf
--- /dev/null
+++ b/tests/spec/glsl-es-3.00/compiler/uniform_block/interface-name-array-without-size.vert
@@ -0,0 +1,22 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 3.00 es
+ * [end config]
+ *
+ * The GLSL ES 3.00 spec says:
+ *
+ * "As the array size indicates the number of buffer objects needed,
+ * uniform block array declarations must specify an array size."
+ */
+#version 300 es
+
+uniform transform_data {
+ mat4 mvp;
+} camera[];
+
+in vec4 position;
+
+void main()
+{
+ gl_Position = camera[0].mvp * position;
+}
--
1.7.11.7
More information about the Piglit
mailing list