tests/shader_runner: Return from run_shader_tests_d3d12() if we're unable to create a test context.

A test environment may legitimately be unable to support running d3d12 tests.
This commit is contained in:
Henri Verbeet 2023-04-04 14:49:04 +02:00 committed by Alexandre Julliard
parent 4e32adb8c1
commit a0a3fb0e5f
Notes: Alexandre Julliard 2023-04-04 22:36:21 +02:00
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/143

View File

@ -524,7 +524,8 @@ void run_shader_tests_d3d12(void)
enable_d3d12_debug_layer();
init_adapter_info();
init_test_context(&runner.test_context, &desc);
if (!init_test_context(&runner.test_context, &desc))
return;
device = runner.test_context.device;
runner.compute_queue = create_command_queue(device,