[Piglit] [PATCH] glean: Skip depth/stencil performance test in quick mode.

Eric Anholt eric at anholt.net
Tue Aug 2 09:25:05 PDT 2011


I don't understand why glean would have performance microbenchmarks in
it, but I haven't ever seen anyone interested in the results.  Cuts
many seconds of an absurdly huge window showing up on my desktop.
---
 tests/glean/tdepthstencil.cpp |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/tests/glean/tdepthstencil.cpp b/tests/glean/tdepthstencil.cpp
index ad672ef..c8c1ca9 100644
--- a/tests/glean/tdepthstencil.cpp
+++ b/tests/glean/tdepthstencil.cpp
@@ -303,7 +303,7 @@ DepthStencilTest::runOne(DepthStencilResult &r, Window &w)
 		r.pass = testDrawAndRead();
 	if (r.pass)
 		r.pass = testTextureOperations();
-	if (r.pass)
+	if (r.pass && !env->options.quick)
 		testPerformance(r);
 }
 
@@ -318,6 +318,10 @@ DepthStencilTest::logOne(DepthStencilResult &r)
 		char str[1000];
 		double mbps;
 
+		/* Skip perf results if we didn't test that. */
+		if (env->options.quick)
+			return;
+
 		env->log << "\tglReadPixels GL_DEPTH_STENCIL rate: ";
 		mbps = r.readDepthStencilRate * sizeof(GLuint) / (1024*1024);
 		sprintf(str, "%.2f", mbps);
-- 
1.7.5.4



More information about the Piglit mailing list