tests: Implement check_requirements() for the OpenGL shader runner.

This commit is contained in:
Henri Verbeet
2024-02-12 19:57:42 +01:00
committed by Alexandre Julliard
parent aac3916fcf
commit 0f3a42c34b
Notes: Alexandre Julliard 2024-02-13 23:12:23 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/646
2 changed files with 31 additions and 5 deletions

View File

@@ -1350,10 +1350,8 @@ void run_shader_tests(struct shader_runner *runner, const struct shader_runner_o
case STATE_REQUIRE:
if (runner->maximum_shader_model < runner->minimum_shader_model
|| (runner->ops->check_requirements && !runner->ops->check_requirements(runner)))
{
|| !runner->ops->check_requirements(runner))
skip_tests = true;
}
break;
case STATE_RESOURCE: