From bc830fa06bf65aee8aeaafd302bed6a805452967 Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani Date: Sat, 19 Oct 2024 13:11:34 +0200 Subject: [PATCH] tests: Compute the correct value for condition conjunctions. Currently the value of the last conjunct is returned. --- tests/shader_runner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/shader_runner.c b/tests/shader_runner.c index e44e7ca5..ba4838c8 100644 --- a/tests/shader_runner.c +++ b/tests/shader_runner.c @@ -167,7 +167,7 @@ static bool check_qualifier_args_conjunction(struct shader_runner *runner, const match = true; line += option_len; if (valid_args[i].tag) - holds = match_tag(runner, option_text); + holds &= match_tag(runner, option_text); else if (runner->minimum_shader_model < valid_args[i].sm_min || runner->minimum_shader_model > valid_args[i].sm_max) holds = false;