<div dir="ltr">On 26 February 2013 12:39, Eric Anholt <span dir="ltr"><<a href="mailto:eric@anholt.net" target="_blank">eric@anholt.net</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I want to actually present results on the screen so that debugging<br>
this test involves less meditation before achieving enlightenment.<br>
---<br>
tests/texturing/depthstencil-render-miplevels.cpp | 13 +++++--------<br>
1 file changed, 5 insertions(+), 8 deletions(-)<br></blockquote><div><br></div><div>Reviewed-by: Paul Berry <<a href="mailto:stereotype441@gmail.com">stereotype441@gmail.com</a>><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
diff --git a/tests/texturing/depthstencil-render-miplevels.cpp b/tests/texturing/depthstencil-render-miplevels.cpp<br>
index ac37b38..4fcc95a 100644<br>
--- a/tests/texturing/depthstencil-render-miplevels.cpp<br>
+++ b/tests/texturing/depthstencil-render-miplevels.cpp<br>
@@ -415,7 +415,11 @@ piglit_init(int argc, char **argv)<br>
} else {<br>
print_usage_and_exit(argv[0]);<br>
}<br>
+}<br>
<br>
+extern "C" enum piglit_result<br>
+piglit_display()<br>
+{<br>
bool pass = true;<br>
<br>
color_tex = create_mipmapped_tex(GL_RGBA);<br>
@@ -454,14 +458,7 @@ piglit_init(int argc, char **argv)<br>
pass = test_miplevel(level) && pass;<br>
}<br>
<br>
- piglit_report_result(pass ? PIGLIT_PASS : PIGLIT_FAIL);<br>
-}<br>
-<br>
-extern "C" enum piglit_result<br>
-piglit_display()<br>
-{<br>
- /* Should never be reached */<br>
- return PIGLIT_FAIL;<br>
+ return pass ? PIGLIT_PASS : PIGLIT_FAIL;<br>
}<br>
<br>
}; /* Anonymous namespace */<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.7.10.4<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></div>