tests: Compute the correct value for condition conjunctions.

Currently the value of the last conjunct is returned.
This commit is contained in:
Giovanni Mascellani 2024-10-19 13:11:34 +02:00 committed by Henri Verbeet
parent cf3e251a9f
commit bc830fa06b
Notes: Henri Verbeet 2024-10-22 20:55:14 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1203

View File

@ -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;