[Piglit] [PATCH] glsl-1.10: Verify that "impossible" GLSL versions are properly rejected

Ian Romanick idr at freedesktop.org
Fri Nov 30 10:14:52 PST 2012


From: Ian Romanick <ian.d.romanick at intel.com>

Currently on Mesa's gles3 branch this leads to an assertion failure.
It works correctly on Mesa master and known Mesa releases.

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
I'm not sure this is the right place for this test script to live.  It
didn't seem to fit in any of the existing subdirectories, and I was
feeling too lazy to make a name for a new one.  Suggestions?

 tests/spec/glsl-1.10/compiler/invalid-version.vert | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 tests/spec/glsl-1.10/compiler/invalid-version.vert

diff --git a/tests/spec/glsl-1.10/compiler/invalid-version.vert b/tests/spec/glsl-1.10/compiler/invalid-version.vert
new file mode 100644
index 0000000..7dece33
--- /dev/null
+++ b/tests/spec/glsl-1.10/compiler/invalid-version.vert
@@ -0,0 +1,10 @@
+/* [config]
+ * expect_result: fail
+ * [end config]
+ */
+#version 999
+
+void main()
+{
+    gl_Position = vec4(0.);
+}
-- 
1.7.11.7



More information about the Piglit mailing list