[Piglit] [PATCH] shader_runner: Take spirv_replaces_glsl into account for current_config
Michel Dänzer
michel at daenzer.net
Tue Sep 4 15:24:02 UTC 2018
From: Michel Dänzer <michel.daenzer at amd.com>
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"
Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
tests/shaders/shader_runner.c | 4 ++--
1 file 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;
--
2.19.0.rc1
More information about the Piglit
mailing list