[Piglit] [PATCH 2/2] shader_runner: Support PIGLIT_DEFAULT_SIZE env var
Jordan Justen
jordan.l.justen at intel.com
Thu Feb 1 00:02:17 UTC 2018
Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
---
tests/shaders/shader_runner.c | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index 700b11327..c6ee8e3de 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -46,8 +46,10 @@ decode_drawing_mode(const char *mode_str);
PIGLIT_GL_TEST_CONFIG_BEGIN
- config.window_width = DEFAULT_WINDOW_WIDTH;
- config.window_height = DEFAULT_WINDOW_HEIGHT;
+ if (!piglit_gl_test_config_override_size(&config)) {
+ config.window_width = DEFAULT_WINDOW_WIDTH;
+ config.window_height = DEFAULT_WINDOW_HEIGHT;
+ }
config.window_visual = PIGLIT_GL_VISUAL_RGBA | PIGLIT_GL_VISUAL_DOUBLE;
config.khr_no_error_support = PIGLIT_NO_ERRORS;
@@ -3926,8 +3928,10 @@ validate_current_gl_context(const char *filename)
{
struct piglit_gl_test_config config = { 0 };
- config.window_width = DEFAULT_WINDOW_WIDTH;
- config.window_height = DEFAULT_WINDOW_HEIGHT;
+ if (!piglit_gl_test_config_override_size(&config)) {
+ config.window_width = DEFAULT_WINDOW_WIDTH;
+ config.window_height = DEFAULT_WINDOW_HEIGHT;
+ }
get_required_config(filename, &config);
--
2.15.1
More information about the Piglit
mailing list