On 21 May 2012 11:08, Pauli Nieminen <span dir="ltr"><<a href="mailto:pauli.nieminen@linux.intel.com" target="_blank">pauli.nieminen@linux.intel.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Preparing to pass more parameters depending of build configuration to<br>
create GLES dispatch tables too.<br></blockquote><div><br>Sorry for taking so long to get around to reviewing these, Pauli.<br><br>I'm worried that your plans for piglit may be at cross purposes with what Chad and I were planning. We have been hoping to eliminate the separate builds for GLES, so that piglit builds just a single set of binaries, and those binaries will use Waffle and piglit-dispatch to choose between GL and GLES based on run-time parameters. Assuming that is the plan, I'm not sure it makes sense to have parse_glspec.py produce different results depending on build parameters. But I could be missing something because I haven't had a chance to look at your entire patch series yet.<br>
<br>I don't think Chad and I have ever made an explicit statement on the Piglit list of what our long term plans are with Waffle and piglit-dispatch. I'm getting together with him to write up a summary of our intentions this morning. We'll send that out to the mailing list and then we can have a lively debate :)<br>
<br>In the meantime I'll keep reviewing your patches.<br><br>Paul<br>
</div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Signed-off-by: Pauli Nieminen <<a href="mailto:pauli.nieminen@linux.intel.com" target="_blank">pauli.nieminen@linux.intel.com</a>><br>
---<br>
glapi/parse_glspec.py | 23 +++++++++++++++--------<br>
1 files changed, 15 insertions(+), 8 deletions(-)<br>
<br>
diff --git a/glapi/parse_glspec.py b/glapi/parse_glspec.py<br>
index ac624eb..3a1c848 100644<br>
--- a/glapi/parse_glspec.py<br>
+++ b/glapi/parse_glspec.py<br>
@@ -459,11 +459,18 @@ class Api(object):<br>
<br>
if __name__ == '__main__':<br>
api = Api()<br>
- with open(sys.argv[1]) as f:<br>
- api.read_gl_tm(f)<br>
- with open(sys.argv[2]) as f:<br>
- api.read_gl_spec(f)<br>
- with open(sys.argv[3]) as f:<br>
- api.read_enumext_spec(f)<br>
- with open(sys.argv[4], 'w') as f:<br>
- f.write(api.to_json())<br>
+ for name in sys.argv:<br>
+ if name.endswith('.py'):<br>
+ continue<br>
+ elif name.endswith('<a href="http://gl.tm" target="_blank">gl.tm</a>'):<br>
+ with open(name) as f:<br>
+ api.read_gl_tm(f)<br>
+ elif name.endswith('gl.spec'):<br>
+ with open(name) as f:<br>
+ api.read_gl_spec(f)<br>
+ elif name.endswith('enumext.spec'):<br>
+ with open(name) as f:<br>
+ api.read_enumext_spec(f)<br>
+ elif name.endswith('.json'):<br>
+ with open(name, 'w') as f:<br>
+ f.write(api.to_json())<br>
<span><font color="#888888">--<br>
1.7.5.4<br>
<br>
_______________________________________________<br>
Piglit mailing list<br>
<a href="mailto:Piglit@lists.freedesktop.org" target="_blank">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>