From 94af1754ddcb66b1796b0f1e1d88f39a2aca9dd2 Mon Sep 17 00:00:00 2001 From: Francisco Casas Date: Mon, 23 Sep 2024 12:48:30 -0300 Subject: [PATCH] tests/shader_runner: Skip the GLSL tests when GLSL support is not enabled. --- tests/shader_runner_gl.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/shader_runner_gl.c b/tests/shader_runner_gl.c index 0972e806..d6767577 100644 --- a/tests/shader_runner_gl.c +++ b/tests/shader_runner_gl.c @@ -242,6 +242,15 @@ static bool gl_runner_init(struct gl_runner *runner, enum shading_language langu DXGI_FORMAT_R32G32B32A32_SINT, }; +#ifndef VKD3D_SHADER_UNSUPPORTED_GLSL + if (language == GLSL) + { + skip("GLSL support is not enabled. If this is unintentional, " + "add -DVKD3D_SHADER_UNSUPPORTED_GLSL to CPPFLAGS.\n"); + return false; + } +#endif + memset(runner, 0, sizeof(*runner)); runner->language = language;