diff options
author | Jordan Justen <jordan.l.justen@intel.com> | 2018-01-31 15:43:50 -0800 |
---|---|---|
committer | Jordan Justen <jordan.l.justen@intel.com> | 2018-05-09 10:44:11 -0700 |
commit | b005897bd5272a21a2db6deb2420c6ae4e313344 (patch) | |
tree | 726fc4254f4776b931a403a587325e4553a9e260 | |
parent | 597e48441883ad0d1cd8b09ab53e77bf7d7243b2 (diff) |
framework-gl: Export window size override function
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
-rw-r--r-- | tests/util/piglit-framework-gl.c | 6 | ||||
-rw-r--r-- | 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 * |