[Piglit] [PATCH 12/19] glean: Remove quiesce() functions.

Kenneth Graunke kenneth at whitecape.org
Mon Dec 31 18:41:01 PST 2012


These were used to try and settle the system before a benchmark, and
aren't terribly useful now that there are no benchmarks.
---
 tests/glean/environ.cpp | 9 ---------
 tests/glean/environ.h   | 2 --
 tests/glean/winsys.cpp  | 8 --------
 tests/glean/winsys.h    | 1 -
 4 files changed, 20 deletions(-)

diff --git a/tests/glean/environ.cpp b/tests/glean/environ.cpp
index 68250d9..a05c165 100644
--- a/tests/glean/environ.cpp
+++ b/tests/glean/environ.cpp
@@ -158,13 +158,4 @@ Environment::imageFileName(string& dbName, string& testName, int n) {
 	return fileName;
 } // Environment::imageFileName
 
-void
-Environment::quiesce() {
-	winSys.quiesce();
-#   if defined(__UNIX__)
-	sync();
-#   elif defined(__MS__)
-#   endif
-} // Environment::quiesce
-
 } // namespace GLEAN
diff --git a/tests/glean/environ.h b/tests/glean/environ.h
index bb0139e..5cd0032 100644
--- a/tests/glean/environ.h
+++ b/tests/glean/environ.h
@@ -101,8 +101,6 @@ class Environment {
 		return imageFileName(options.db2Name, testName, n);
 	}
 
-	void quiesce();		// Settle down before starting a benchmark.
-
 }; // class Environment
 
 } // namespace GLEAN
diff --git a/tests/glean/winsys.cpp b/tests/glean/winsys.cpp
index 76216d0..7f9049c 100644
--- a/tests/glean/winsys.cpp
+++ b/tests/glean/winsys.cpp
@@ -262,12 +262,4 @@ WindowSystem::makeCurrent(RenderingContext& r, Window& w) {
 #   endif
 } // WindowSystem::makeCurrent
 
-void
-WindowSystem::quiesce() {
-#   if defined(__X11__)
-	XSync(dpy, False);
-#   elif defined(__WIN__)
-#   endif
-} // WindowSystem::quiesce
-
 } // namespace GLEAN
diff --git a/tests/glean/winsys.h b/tests/glean/winsys.h
index 595fb64..d045f20 100644
--- a/tests/glean/winsys.h
+++ b/tests/glean/winsys.h
@@ -84,7 +84,6 @@ class WindowSystem {
 	bool makeCurrent();		// Remove context/surface binding.
 	bool makeCurrent(RenderingContext& r, Window& w);
 					// Bind given context and surface.
-	void quiesce();			// Wait for system to go idle.
 
 	// State information:
 
-- 
1.8.0.3



More information about the Piglit mailing list