On 25 August 2012 01:12, Chris Forbes <span dir="ltr"><<a href="mailto:chrisf@ijw.co.nz" target="_blank">chrisf@ijw.co.nz</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">
<br>
Signed-off-by: Chris Forbes <<a href="mailto:chrisf@ijw.co.nz">chrisf@ijw.co.nz</a>><br></blockquote><div><br>Functionally I'm fine with this patch. But it's hard to follow the diff because the patch contains both whitespace changes (fixing up indentation) and non-whitespace changes (changing the if test to a call to piglit_require_gl_version()). I would recommend separating into two patches so that the diffs are easier to follow. Also, it would be nice to put the indentation fixup before patch 2/6, so that when patch 2/6 modifies the same file, it doesn't appear to be introducing indentation problems.<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
---<br>
tests/shaders/glsl-arb-fragment-coord-conventions.c | 19 +++++++------------<br>
1 file changed, 7 insertions(+), 12 deletions(-)<br>
<br>
diff --git a/tests/shaders/glsl-arb-fragment-coord-conventions.c b/tests/shaders/glsl-arb-fragment-coord-conventions.c<br>
index 3dbb81f..fd1a683 100644<br>
--- a/tests/shaders/glsl-arb-fragment-coord-conventions.c<br>
+++ b/tests/shaders/glsl-arb-fragment-coord-conventions.c<br>
@@ -217,19 +217,14 @@ static void key_func(unsigned char key, int x, int y)<br>
piglit_escape_exit_key(key, x, y);<br>
}<br>
<br>
-void<br>
-piglit_init(int argc, char **argv)<br>
+void piglit_init(int argc, char **argv)<br>
{<br>
- if (piglit_get_gl_version() < 20) {<br>
- printf("Requires OpenGL 2.0\n");<br>
- piglit_report_result(PIGLIT_SKIP);<br>
- }<br>
-<br>
- piglit_require_extension("GL_ARB_fragment_coord_conventions");<br>
+ piglit_require_gl_version(20);<br>
<br>
- if (!piglit_automatic) {<br>
- printf("Press t to switch between subtests.\n");<br>
- glutKeyboardFunc(key_func);<br>
- }<br>
+ piglit_require_extension("GL_ARB_fragment_coord_conventions");<br>
<br>
+ if (!piglit_automatic) {<br>
+ printf("Press t to switch between subtests.\n");<br>
+ glutKeyboardFunc(key_func);<br>
+ }<br>
}<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.7.12<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>