tests/shader_runner: Avoid creating devices for backends that won't execute.

My main motivation to this is avoiding generating a lot of useless
log lines from other executors when I'm interested in just one of
them, but I can imagine this also somewhat improving efficiency.
This commit is contained in:
Giovanni Mascellani
2025-03-13 22:07:10 +01:00
committed by Henri Verbeet
parent 0b273ea88c
commit fc4316f664
Notes: Henri Verbeet 2025-03-17 15:28:49 +01:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1416
8 changed files with 90 additions and 36 deletions

View File

@@ -1459,6 +1459,10 @@ static void run_tests(enum shading_language language)
{
struct gl_runner runner;
if (test_skipping_execution(language == SPIR_V ? "OpenGL/SPIR-V" : "OpenGL/GLSL",
HLSL_COMPILER, SHADER_MODEL_4_0, SHADER_MODEL_5_1))
return;
if (!gl_runner_init(&runner, language))
return;
run_shader_tests(&runner.r, &runner.caps, &gl_runner_ops, NULL);