Module: vkd3d Branch: master Commit: 60e0246436f1e1b72af4673846f8eb52010fa9e1 URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/60e0246436f1e1b72af4673846f8eb...
Author: Giovanni Mascellani gmascellani@codeweavers.com Date: Tue Dec 26 20:42:45 2023 +0100
tests: Skip unbounded descriptor ranges tests when they're unsupported.
They are unsupported if the Vulkan descriptor indexing extension is not available; on MoltenVK it is known to be buggy, so it is disabled.
---
tests/d3d12.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
diff --git a/tests/d3d12.c b/tests/d3d12.c index e6ae6c5f..9b1ec8e3 100644 --- a/tests/d3d12.c +++ b/tests/d3d12.c @@ -36861,6 +36861,12 @@ static void test_unbounded_resource_arrays(void) command_list = context.list; queue = context.queue;
+ if (get_resource_binding_tier(device) < D3D12_RESOURCE_BINDING_TIER_2) + { + skip("Device doesn't support resource binding tier 2.\n"); + goto done; + } + memset(&root_signature_desc, 0, sizeof(root_signature_desc)); root_signature_desc.NumParameters = ARRAY_SIZE(root_parameters); root_signature_desc.pParameters = root_parameters; @@ -37021,6 +37027,12 @@ static void test_unbounded_samplers(void) command_list = context.list; queue = context.queue;
+ if (get_resource_binding_tier(device) < D3D12_RESOURCE_BINDING_TIER_2) + { + skip("Device doesn't support resource binding tier 2.\n"); + goto done; + } + root_signature_desc.NumParameters = ARRAY_SIZE(root_parameters); root_signature_desc.Flags = 0; root_signature_desc.NumStaticSamplers = 0;