On 30 November 2012 10:14, Ian Romanick <span dir="ltr"><<a href="mailto:idr@freedesktop.org" target="_blank">idr@freedesktop.org</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
From: Ian Romanick <<a href="mailto:ian.d.romanick@intel.com">ian.d.romanick@intel.com</a>><br>
<br>
Currently on Mesa's gles3 branch this leads to an assertion failure.<br>
It works correctly on Mesa master and known Mesa releases.<br>
<br>
Signed-off-by: Ian Romanick <<a href="mailto:ian.d.romanick@intel.com">ian.d.romanick@intel.com</a>><br></blockquote><div><br>When I apply this patch to Piglit master and run it using piglit-run.py, I get the following error:<br>
<br> File "/home/pberry/.platform/piglit-mesa/piglit/source/framework/core.py", line 445, in doRun<br> result = self.run(env.valgrind)<br> File "/home/pberry/.platform/piglit-mesa/piglit/source/framework/exectest.py", line 63, in run<br>
if self.command is not None:<br> File "/home/pberry/.platform/piglit-mesa/piglit/source/framework/glsl_parser_test.py", line 375, in command<br> self.config.get('config', 'glsl_version')<br>
File "/usr/lib/python2.7/ConfigParser.py", line 618, in get<br> raise NoOptionError(option, section)<br><br>I think you need to add the line "* glsl_version: 1.10" to the [config] section.<br><br>
With that fixed, this is:<br><br>Reviewed-by: Paul Berry <<a href="mailto:stereotype441@gmail.com">stereotype441@gmail.com</a>><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
---<br>
I'm not sure this is the right place for this test script to live. It<br>
didn't seem to fit in any of the existing subdirectories, and I was<br>
feeling too lazy to make a name for a new one. Suggestions?<br></blockquote><div><br>Personally, I'm fine with putting it in glsl-1.10, since that's where we put all the other tests that should be run no matter what version of GLSL is supported.<br>
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
tests/spec/glsl-1.10/compiler/invalid-version.vert | 10 ++++++++++<br>
1 file changed, 10 insertions(+)<br>
create mode 100644 tests/spec/glsl-1.10/compiler/invalid-version.vert<br>
<br>
diff --git a/tests/spec/glsl-1.10/compiler/invalid-version.vert b/tests/spec/glsl-1.10/compiler/invalid-version.vert<br>
new file mode 100644<br>
index 0000000..7dece33<br>
--- /dev/null<br>
+++ b/tests/spec/glsl-1.10/compiler/invalid-version.vert<br>
@@ -0,0 +1,10 @@<br>
+/* [config]<br>
+ * expect_result: fail<br>
+ * [end config]<br>
+ */<br>
+#version 999<br>
+<br>
+void main()<br>
+{<br>
+ gl_Position = vec4(0.);<br>
+}<br>
<span class=""><font color="#888888">--<br>
1.7.11.7<br>
<br>
_______________________________________________<br>
Piglit mailing list<br>
<a href="mailto:Piglit@lists.freedesktop.org">Piglit@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/piglit" target="_blank">http://lists.freedesktop.org/mailman/listinfo/piglit</a><br>
</font></span></blockquote></div><br></div>