summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2018-09-04 17:17:39 +0200
committerMichel Dänzer <michel@daenzer.net>2018-09-05 13:40:16 +0200
commitf2ec498140b613296d5636c138d3a5972146ed41 (patch)
tree969c648bf54e3775830545be6dc4101b36f99288
parentb2a1aa78f15c2dfdaaeda622f9fb2a8b58e55ff0 (diff)
shader_runner: Take spirv_replaces_glsl into account for current_config
Without this, validate_current_gl_context never returns true if spirv_replaces_glsl == true, resulting in repeatedly calling recreate_gl_context indefinitely after the first subtest. Fixes: 0baf4e2708c "shader_runner/spirv: support loading SPIR-V shaders" Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
-rw-r--r--tests/shaders/shader_runner.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index cc377cb5e..6df8bd860 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -39,6 +39,7 @@
#define DEFAULT_WINDOW_WIDTH 250
#define DEFAULT_WINDOW_HEIGHT 250
+static bool spirv_replaces_glsl = false;
static struct piglit_gl_test_config current_config;
static void
@@ -61,7 +62,7 @@ PIGLIT_GL_TEST_CONFIG_BEGIN
* [require] section, so it will be handled later.
*/
if (argc > 1) {
- get_required_config(argv[1], false, &config);
+ get_required_config(argv[1], spirv_replaces_glsl, &config);
} else {
config.supports_gl_compat_version = 10;
}
@@ -154,7 +155,6 @@ static bool sso_in_use = false;
static bool glsl_in_use = false;
static bool force_glsl = false;
static bool spirv_in_use = false;
-static bool spirv_replaces_glsl = false;
static GLchar *prog_err_info = NULL;
static GLuint vao = 0;
static GLuint draw_fbo, read_fbo;