tests/shader_runner: Skip the DXIL tests when DXIL support is not enabled.

This commit is contained in:
Francisco Casas 2024-09-23 13:11:35 -03:00 committed by Henri Verbeet
parent 94af1754dd
commit a4262c3836
Notes: Henri Verbeet 2024-09-24 14:11:16 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1109

View File

@ -1059,6 +1059,15 @@ static void run_shader_tests_for_model_range(void *dxc_compiler,
ID3D12Device *device;
HRESULT hr;
#ifndef VKD3D_SHADER_UNSUPPORTED_DXIL
if (minimum_shader_model >= SHADER_MODEL_6_0)
{
skip("DXIL support is not enabled. If this is unintentional, "
"add -DVKD3D_SHADER_UNSUPPORTED_DXIL to CPPFLAGS.\n");
return;
}
#endif
if (!init_test_context(&runner.test_context, &desc))
return;
device = runner.test_context.device;