[Piglit] [PATCH 1/2] framework-gl: Export window size override function

Jordan Justen jordan.l.justen at intel.com
Thu Feb 1 00:02:16 UTC 2018


Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
---
 tests/util/piglit-framework-gl.c | 6 +++---
 tests/util/piglit-framework-gl.h | 3 +++
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/tests/util/piglit-framework-gl.c b/tests/util/piglit-framework-gl.c
index 1b2078d5c..c80441870 100644
--- a/tests/util/piglit-framework-gl.c
+++ b/tests/util/piglit-framework-gl.c
@@ -47,8 +47,8 @@ static void
 process_args(int *argc, char *argv[], unsigned *force_samples,
 	     struct piglit_gl_test_config *config);
 
-static bool
-override_size(struct piglit_gl_test_config *config)
+bool
+piglit_gl_test_config_override_size(struct piglit_gl_test_config *config)
 {
 	const char *default_size;
 	unsigned int width;
@@ -74,7 +74,7 @@ piglit_gl_test_config_init(struct piglit_gl_test_config *config)
 {
 	memset(config, 0, sizeof(*config));
 
-	if (!override_size(config)) {
+	if (!piglit_gl_test_config_override_size(config)) {
 		/* Default window size.  Note: Win8's min window width */
 		/* seems to be 160 pixels.  When the window size is */
 		/* unexpectedly resized, tests are marked as "WARN". */
diff --git a/tests/util/piglit-framework-gl.h b/tests/util/piglit-framework-gl.h
index 970fd5502..a4ecddbe7 100644
--- a/tests/util/piglit-framework-gl.h
+++ b/tests/util/piglit-framework-gl.h
@@ -226,6 +226,9 @@ void
 piglit_gl_process_args(int *argc, char *argv[],
 		       struct piglit_gl_test_config *config);
 
+bool
+piglit_gl_test_config_override_size(struct piglit_gl_test_config *config);
+
 /**
  * Get the list of command-line selected tests from the piglit_gl_test_config
  *
-- 
2.15.1



More information about the Piglit mailing list