diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 13:15:26 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 13:15:26 -0500 |
| commit | 84df39f34fd6e6ccedd08100dfbb03b63d55cd72 (patch) | |
| tree | 1969ca1bbccb379459ec894a5987fd5699cbd779 /runtime/test/d3d12_vulkan_device_test.cpp | |
| parent | f91de2e846dc022b44e6b2d58e828f208dfaeaa9 (diff) | |
| parent | 1240e41494b196519dd4828d664ef9851b8b513c (diff) | |
Merge pull request #2453 from Flyander
Diffstat (limited to 'runtime/test/d3d12_vulkan_device_test.cpp')
| -rw-r--r-- | runtime/test/d3d12_vulkan_device_test.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/runtime/test/d3d12_vulkan_device_test.cpp b/runtime/test/d3d12_vulkan_device_test.cpp index b657d91ad..629a83550 100644 --- a/runtime/test/d3d12_vulkan_device_test.cpp +++ b/runtime/test/d3d12_vulkan_device_test.cpp | |||
| @@ -10,6 +10,7 @@ | |||
| 10 | // under VK_LAYER_KHRONOS_validation; any validation error fails the test. | 10 | // under VK_LAYER_KHRONOS_validation; any validation error fails the test. |
| 11 | #include "vk_test_device.h" | 11 | #include "vk_test_device.h" |
| 12 | #include "../shims/d3d12_com.h" | 12 | #include "../shims/d3d12_com.h" |
| 13 | #include "../shims/d3d12_feature_compat.h" | ||
| 13 | #include "../shims/d3d12_xs_device.h" | 14 | #include "../shims/d3d12_xs_device.h" |
| 14 | #include "d3d12_copy_compare.h" // D3D-46: copies compared with the host runtime | 15 | #include "d3d12_copy_compare.h" // D3D-46: copies compared with the host runtime |
| 15 | #include "d3d12_depth24_compare.h" // D24 clears compared with the host runtime | 16 | #include "d3d12_depth24_compare.h" // D24 clears compared with the host runtime |
| @@ -2254,8 +2255,8 @@ int compare_feature_options(ID3D12Device* ours, const rt::d3d12::VulkanDeviceInf | |||
| 2254 | D3D12_FEATURE_DATA_CROSS_NODE cross_node{}; | 2255 | D3D12_FEATURE_DATA_CROSS_NODE cross_node{}; |
| 2255 | D3D12_FEATURE_DATA_DISPLAYABLE displayable{}; | 2256 | D3D12_FEATURE_DATA_DISPLAYABLE displayable{}; |
| 2256 | D3D12_FEATURE_DATA_PREDICATION predication{}; | 2257 | D3D12_FEATURE_DATA_PREDICATION predication{}; |
| 2257 | D3D12_FEATURE_DATA_APPLICATION_SPECIFIC_DRIVER_STATE driver_state{}; | 2258 | rt::d3d12::compat::FeatureSupportFlag driver_state{}; |
| 2258 | D3D12_FEATURE_DATA_BYTECODE_BYPASS_HASH_SUPPORTED bypass_hash{}; | 2259 | rt::d3d12::compat::FeatureSupportFlag bypass_hash{}; |
| 2259 | D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_SUPPORT prot_support{}; | 2260 | D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_SUPPORT prot_support{}; |
| 2260 | D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPE_COUNT prot_count{}; | 2261 | D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPE_COUNT prot_count{}; |
| 2261 | D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPES prot_types{}; | 2262 | D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPES prot_types{}; |
| @@ -2267,9 +2268,12 @@ int compare_feature_options(ID3D12Device* ours, const rt::d3d12::VulkanDeviceInf | |||
| 2267 | query_ours(std::pair{"CROSS_NODE", D3D12_FEATURE_CROSS_NODE}, cross_node); | 2268 | query_ours(std::pair{"CROSS_NODE", D3D12_FEATURE_CROSS_NODE}, cross_node); |
| 2268 | query_ours(std::pair{"DISPLAYABLE", D3D12_FEATURE_DISPLAYABLE}, displayable); | 2269 | query_ours(std::pair{"DISPLAYABLE", D3D12_FEATURE_DISPLAYABLE}, displayable); |
| 2269 | query_ours(std::pair{"PREDICATION", D3D12_FEATURE_PREDICATION}, predication); | 2270 | query_ours(std::pair{"PREDICATION", D3D12_FEATURE_PREDICATION}, predication); |
| 2270 | query_ours(std::pair{"APPLICATION_SPECIFIC_DRIVER_STATE", D3D12_FEATURE_APPLICATION_SPECIFIC_DRIVER_STATE}, | 2271 | query_ours(std::pair{"APPLICATION_SPECIFIC_DRIVER_STATE", |
| 2272 | rt::d3d12::compat::kFeatureApplicationSpecificDriverState}, | ||
| 2271 | driver_state); | 2273 | driver_state); |
| 2272 | query_ours(std::pair{"BYTECODE_BYPASS_HASH_SUPPORTED", D3D12_FEATURE_BYTECODE_BYPASS_HASH_SUPPORTED}, bypass_hash); | 2274 | query_ours(std::pair{"BYTECODE_BYPASS_HASH_SUPPORTED", |
| 2275 | rt::d3d12::compat::kFeatureBytecodeBypassHashSupported}, | ||
| 2276 | bypass_hash); | ||
| 2273 | query_ours_input(std::pair{"PROTECTED_RESOURCE_SESSION_SUPPORT", D3D12_FEATURE_PROTECTED_RESOURCE_SESSION_SUPPORT}, | 2277 | query_ours_input(std::pair{"PROTECTED_RESOURCE_SESSION_SUPPORT", D3D12_FEATURE_PROTECTED_RESOURCE_SESSION_SUPPORT}, |
| 2274 | D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_SUPPORT{0, {}}, prot_support); | 2278 | D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_SUPPORT{0, {}}, prot_support); |
| 2275 | query_ours_input( | 2279 | query_ours_input( |
| @@ -2661,11 +2665,13 @@ int compare_feature_options(ID3D12Device* ours, const rt::d3d12::VulkanDeviceInf | |||
| 2661 | [&](const char* n, const auto& a, const auto& b) { | 2665 | [&](const char* n, const auto& a, const auto& b) { |
| 2662 | check_bool(n, "Supported", a.Supported, b.Supported); | 2666 | check_bool(n, "Supported", a.Supported, b.Supported); |
| 2663 | }); | 2667 | }); |
| 2664 | compare_host("APPLICATION_SPECIFIC_DRIVER_STATE", D3D12_FEATURE_APPLICATION_SPECIFIC_DRIVER_STATE, driver_state, | 2668 | compare_host("APPLICATION_SPECIFIC_DRIVER_STATE", rt::d3d12::compat::kFeatureApplicationSpecificDriverState, |
| 2669 | driver_state, | ||
| 2665 | [&](const char* n, const auto& a, const auto& b) { | 2670 | [&](const char* n, const auto& a, const auto& b) { |
| 2666 | check_bool(n, "Supported", a.Supported, b.Supported); | 2671 | check_bool(n, "Supported", a.Supported, b.Supported); |
| 2667 | }); | 2672 | }); |
| 2668 | compare_host("BYTECODE_BYPASS_HASH_SUPPORTED", D3D12_FEATURE_BYTECODE_BYPASS_HASH_SUPPORTED, bypass_hash, | 2673 | compare_host("BYTECODE_BYPASS_HASH_SUPPORTED", rt::d3d12::compat::kFeatureBytecodeBypassHashSupported, |
| 2674 | bypass_hash, | ||
| 2669 | [&](const char* n, const auto& a, const auto& b) { | 2675 | [&](const char* n, const auto& a, const auto& b) { |
| 2670 | check_bool(n, "Supported", a.Supported, b.Supported); | 2676 | check_bool(n, "Supported", a.Supported, b.Supported); |
| 2671 | }); | 2677 | }); |