tests: Skip processing resources according to [require] directives.

This commit is contained in:
Giovanni Mascellani 2023-10-17 12:01:01 +02:00 committed by Alexandre Julliard
parent d69c04471e
commit 0dc40d7c1e
Notes: Alexandre Julliard 2023-10-18 22:51:21 +02:00
Approved-by: Zebediah Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/412

View File

@ -1081,7 +1081,13 @@ void run_shader_tests(struct shader_runner *runner, const struct shader_runner_o
break;
case STATE_RESOURCE:
/* Not every backend supports every resource type
* (specifically, D3D9 doesn't support UAVs and
* textures with data type other than float). */
if (!skip_tests)
{
set_resource(runner, runner->ops->create_resource(runner, &current_resource));
}
free(current_resource.data);
break;