<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 11, 2015 at 3:50 PM, Brian Paul <span dir="ltr"><<a href="mailto:brianp@vmware.com" target="_blank">brianp@vmware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Instead of printing potentially a thousand error messages when<br>
there's a failure.<br>
<br>
Also, some minor code reformatting.<br>
---<br>
 tests/spec/arb_copy_image/formats.c | 9 +++++++--<br>
 1 file changed, 7 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/tests/spec/arb_copy_image/formats.c b/tests/spec/arb_copy_image/formats.c<br>
index 787194b..eb0f314 100644<br>
--- a/tests/spec/arb_copy_image/formats.c<br>
+++ b/tests/spec/arb_copy_image/formats.c<br>
@@ -747,6 +747,7 @@ check_texture(GLuint texture, unsigned level,<br>
                                fprintf(stdout, ".\n");<br>
<br>
                                pass = false;<br>
+                               i = j = TEX_SIZE; /* exit loops upon error */<br></blockquote><div>With this change, you should also remove 'passrate' computations</div><div>in the test. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                        }<br>
                }<br>
        }<br>
@@ -803,7 +804,9 @@ run_test(struct texture_format *src_format, struct texture_format *dst_format)<br>
        glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);<br>
        glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);<br>
        pass &= piglit_check_gl_error(GL_NO_ERROR);<br>
-       if (!pass) goto cleanup;<br>
+       if (!pass)<br>
+               goto cleanup;<br>
+<br>
        warn |= !check_texture(texture[0], src_level, src_format, src_data);<br>
<br>
        dst_width = TEX_SIZE * dst_format->block_width;<br>
@@ -839,7 +842,9 @@ run_test(struct texture_format *src_format, struct texture_format *dst_format)<br>
        glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);<br>
        glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);<br>
        pass &= piglit_check_gl_error(GL_NO_ERROR);<br>
-       if (!pass) goto cleanup;<br>
+       if (!pass)<br>
+               goto cleanup;<br>
+<br>
        warn |= !check_texture(texture[1], dst_level, dst_format, dst_data);<br>
<br>
        glCopyImageSubData(texture[0], GL_TEXTURE_2D, src_level,<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.9.1<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" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/piglit</a><br>
</font></span></blockquote></div><br></div></div>