diff options
| author | Ash Hopkins <ashleighhopkins87@gmail.com> | 2026-11-22 11:25:05 +0000 |
|---|---|---|
| committer | Ash Hopkins <ashleighhopkins87@gmail.com> | 2026-11-22 12:54:04 +0000 |
| commit | 6eb5bce3920b68006e6058a48aab5938f3f59a8b (patch) | |
| tree | c819d8c6155e98c5db25569c3f899621a37353a4 /runtime/src/main.cpp | |
| parent | 41f448261e1de8a410b4d760e69a7e5656cef858 (diff) | |
runtime: accept a Vulkan 1.2 device with the dynamic rendering and synchronization2 extensions
The D3D12 layer and its GPU tests took only Vulkan 1.3 devices, for dynamicRendering and synchronization2.
CrossOver's MoltenVK on macOS (1.2.10, the driver its Wine uses) is Vulkan 1.2 with VK_KHR_dynamic_rendering
and VK_KHR_synchronization2, the same features under their extension names, so every Vulkan-backed test
skipped there. src/vulkan13_features.h picks the core features on 1.3 and the two extensions on 1.2, and
device_proc_or_khr falls back to the ...KHR entry points (vkCmdPipelineBarrier2KHR, vkCmdBeginRenderingKHR),
which a 1.2 device serves instead of the core names. The translated shaders are SPIR-V 1.5 validated for
Vulkan 1.2 already. On a 1.3 device the feature chain is the one it was.
Tested in a CrossOver Preview arm64 bottle (FEX) on an Apple M2 Max, cross-built with clang-cl 22.1.8 and
xwin: against main at the same commit, no test that passed fails, and d3d12_com, d3d12_multithread,
d3d12_method_variants, d3d12_uav_clear, d3d12_debug_markers, d3d12_fence_timing, d3d12_sampler2,
d3d12_typeless_rtv, d3d12_predicated_copy and depth24_convert now run and pass. Ten more now run and
fail: comparisons with Wine's host D3D12, and MoltenVK 1.2.10 limits (vk_binary_occlusion and
vk_overlapping_occlusion fail the same way natively on that driver and pass on MoltenVK 1.4.2). The
1.3 path of create_vulkan_device_standalone was not run on a 1.3 device here.
AI-assisted. No game files.
Diffstat (limited to 'runtime/src/main.cpp')
0 files changed, 0 insertions, 0 deletions