[Piglit] [PATCH 1/2] Add a parser test for "#version 110 es".

Kenneth Graunke kenneth at whitecape.org
Fri Jun 7 22:20:06 PDT 2013


This should fail as there aren't profiles in GLSL 1.10.  It currently
causes assertion failures in Mesa.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
 tests/spec/glsl-1.10/compiler/invalid-version-es.vert | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 tests/spec/glsl-1.10/compiler/invalid-version-es.vert

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



More information about the Piglit mailing list