Skip to content

MetalVulkan 7.0

Choose a tag to compare

@github-actions github-actions released this 23 Nov 04:45
· 18 commits to main since this release
0de5187

MetalVulkan 7.0 is the first release under the new name (formerly VKD3D-Proton macOS). It is a Vulkan 1.4 implementation for macOS, MetalSharp's MoltenVK, with Direct3D 12 down to 3 on top of it. DXVK moved in from DXVK-MacOS with its full history, so one DXVK now serves VKD3D-Proton's swap chains and every older Direct3D API. The arm64 builds run their hot CPU paths on NEON, where they had no SIMD at all.

One repository, one DXVK

  • DXVK lives in dxvk/: DXVK 3.1.1 on MoltenVK, with d7vk's ddraw for Direct3D 7, 6, 5 and 3. It came from metalsharp/DXVK-MacOS, which is now archived.
  • The VKD3D-Proton packages' DXGI, D3D11 and D3D10 were DXVK 2.7.1 with four patches. They are now this DXVK, D3D11On12 included. On MetalSharp Wine's arm64 build, DXVK's probes that failed or hung on 2.7.1 now pass: geometry_shader and pipeline_stats.
  • New dxvk packages for x86_64, i386 and ARM64X: ddraw.dll, d3d8.dll, d3d9.dll, d3d10core.dll, d3d11.dll and dxgi.dll. With a VKD3D-Proton package, a Wine gets Direct3D 12 to 3 on one DXVK.
  • Custom Shaders Patch: DXVK's ResolveSubresource is hybrid patchable, so the patch's detour lands on an x86_64 entry in the ARM64X build as well.
  • DXVK reports itself as v3.1.1 (MetalVulkan <revision>).

NEON on Apple Silicon (arm64 and ARM64X packages)

Neither half of an ARM64X build has SSE2, so VKD3D-Proton's and DXVK's SIMD paths were plain C or CRT calls. Speedups are per call, measured on an M-series core:

  • VKD3D-Proton:
    • CopyDescriptors finds each descriptor set's runs with NEON and bit scans: 3.6–4.6× faster from 32 descriptors.
    • The Metal Shader Converter bridge finds a draw's changed root arguments four words at a time: 2.6–3.8× faster.
    • Descriptor metadata copies and root-argument clears are inline NEON instead of CRT calls.
    • Descriptor-buffer writes are STNP pairs: 4× faster for scattered 32-byte writes.
    • Spin waits pause with isb.
  • DXVK:
    • D3D9 constant updates: 24.3 → 20.5 ns for 64 vec4.
    • D3D9 int and bool constant copies: 2.2 → 1.5 ns.
    • Input signature search: 6.8 → 0.9 ns.
    • Push data copies: 2.2 → 0.9 ns.
    • Spin waits pause with isb.
    • d7vk's software vertex processing now matches the x86 SSE2 results bit for bit.

Vulkan

  • The moltenvk package is a Vulkan 1.4 ICD with 178 extensions, including ray tracing pipelines and queries, mesh shaders, transform feedback, extended dynamic state 3, host image copy and Metal interop. Point VK_DRIVER_FILES at its MoltenVK_icd.json to use it outside Wine. MoltenVK itself is 6.0's.

Tested

On MetalSharp Wine's arm64 build, VKD3D lane:

  • VKD3D-Proton's D3D12 harness passes all 160 tests, with the same results as 6.0, descriptor_copies and d3d11on12 included.

  • DXVK's probes:

    Probe Result
    d3d11_draw 5/6 (stream_output needs transform feedback MoltenVK doesn't implement)
    d3d11_features 34/34
    d3d9_draw 8/8
    ddraw_draw 8/8
    d3d11_smoke, d3d9_smoke, d3d8_smoke OK

Built from 0de5187. Each package holds its files, their licenses and SHA256SUMS.

  • vkd3d-proton-v7.0-x86_64: VKD3D-Proton's d3d12.dll and d3d12core.dll, with DXVK's dxgi.dll, d3d11.dll and d3d10core.dll, for x86_64 Windows programs (x86_64-windows). Also the lane's own NGX core and NVAPI (nvngx.dll, nvapi64.dll) as x86_64 Wine builtins, which run DLSS Super Resolution and Ray Reconstruction on MetalFX in an x86_64 Wine (MetalSharp's, under Rosetta).
  • vkd3d-proton-v7.0-arm64: for an arm64 Wine that runs x86_64 programs with FEX (MetalSharp Wine).
    • VKD3D-Proton's d3d12.dll and d3d12core.dll as ARM64X (aarch64-windows), which x86_64 programs load as ARM64EC.
    • DXVK's dxgi.dll, d3d11.dll and d3d10core.dll, also ARM64X (x86_64-windows).
    • The lane's own NGX core and NVAPI (nvngx.dll, nvapi64.dll, ARM64X).
  • dxvk-v7.0-x86_64, dxvk-v7.0-i386, dxvk-v7.0-arm64x: DXVK (dxvk/): ddraw.dll (d7vk), d3d8.dll, d3d9.dll, d3d10core.dll, d3d11.dll and dxgi.dll, with dxvk.conf.
    • x86_64: for x86_64 programs.
    • i386: for 32-bit programs.
    • arm64x: ARM64X, for an arm64 Wine with FEX (x86_64-windows).
  • moltenvk-v7.0-universal: MetalSharp's MoltenVK, ad-hoc signed and universal (arm64 + x86_64).
    • libMoltenVK.dylib and MoltenVK_icd.json, a Vulkan 1.4 ICD.
    • Apple's Metal Shader Converter library (libmetalirconverter.dylib, unmodified and Apple-signed), which converts DXIL shaders to Metal for VKD3D-Proton (METALSHARP_MSC=0 turns it off).
    • DirectXShaderCompiler's DXBC-to-DXIL converter (libdxbcconverter.dylib, NCSA), which hands it DXBC shaders too (METALSHARP_MSC_DXBC=0 keeps them on SPIR-V).
    • It runs MetalFX's scalers for VKD3D-Proton's and DXVK's DLSS and swap chain upscaling.