Skip to content

VKD3D-Proton macOS 5.4

Choose a tag to compare

@github-actions github-actions released this 10 Nov 03:54
· 8679 commits to main since this release
6a1326c

VKD3D-Proton macOS 5.4 is built from main (6a1326c, #20 and #21). Most of it fixes CONTROL Resonant on the VKD3D-Proton lane: materials, window interiors, mesh shaders and ray tracing now render, and its GPU faults are gone. ExecuteIndirect now works when a command signature changes a root CBV, and timestamp queries cost less.

CONTROL Resonant

  • Streamed materials rendered as block noise, and the game hit a GPU fault (#20): MoltenVK gave every sparse texture ShaderWrite, which puts it on Metal's sparse tier 1, and tier 1 tiles of block-compressed formats aren't the rectangles Metal reports. Compressed sparse textures now stay on tier 2, whose tiles match. Binds that mixed tier 1 and tier 2 textures stalled Metal's queue for 4 s, which the game reported as a GPU fault; each bind now maps tier 1 textures first, then tier 2.
  • Window interiors glowed magenta and yellow (#21): Metal (macOS 27.2, placement sparse tier 2) loses mips 6 and 7 of the tail of some block-compressed sparse textures whose height isn't a power of two, such as 2048×1080 BC6H and 1920×1080 BC7. The first sparse image of each shape now runs a GPU self-test. An image whose tail doesn't hold gets an ordinary texture, bound as the sparse one. Unmapped blocks of it read zeros, both when it's created and after an unmap. tiled_bc now includes both shapes.
  • Mesh shaders failed with E_OUTOFMEMORY (#20): SPIRV-Cross copied an array output per vertex or primitive (float2 TEXCOORD[2]) whole into each flattened member, which Metal rejects. All 49 of the game's mesh shaders now compile; 5 failed before.
  • Ray tracing hung with a GPU fault (#20): vkCmdTraceRaysKHR now accepts miss, hit and callable tables with a stride of 0, which read their first record for every index.

ExecuteIndirect

  • A command signature that changes a root CBV (#21) failed with E_NOTIMPL ("Root parameter is not a raw VA"). Root CBVs are push descriptors on MoltenVK (Metal constant buffers, which read faster than through a device address). A new MoltenVK token, VK_INDIRECT_COMMANDS_TOKEN_TYPE_PUSH_DESCRIPTOR_BUFFER_MVK, now binds each sequence's address to the descriptor from the indirect command buffer. DirectX-Graphics-Samples' D3D12ExecuteIndirect renders the same as on D3DMetal.

Performance and debugging

  • Timestamps (#20) are written on the next render or compute pass instead of a blit pass each. In Subnautica 2, Xcode's API insights fell from 689 to 112.
  • GPU captures of frames with sparse binds now replay. METALSHARP_TRACE=gpu reports sparse binds that are slow or stuck.

Known open

  • A dark floor decal in CONTROL Resonant still flickers.

Built from 6a1326c. Each package holds its files, their licenses and SHA256SUMS.

  • vkd3d-proton-v5.4-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), and 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). Stage them together.
  • vkd3d-proton-v5.4-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, loaded by x86_64 programs as ARM64EC), with DXVK's x86_64 dxgi.dll, d3d11.dll and d3d10core.dll (x86_64-windows), and the lane's own NGX core and NVAPI (nvngx.dll, nvapi64.dll, ARM64X), which run DLSS Super Resolution and Ray Reconstruction on MetalFX.
  • moltenvk-v5.4-universal: the universal (arm64 + x86_64), ad-hoc signed libMoltenVK.dylib and MoltenVK_icd.json both lanes run on, with Apple's Metal Shader Converter library (libmetalirconverter.dylib, unmodified, Apple-signed), which MoltenVK uses to convert DXIL compute, vertex, mesh, amplification and pixel shaders for VKD3D-Proton (METALSHARP_MSC=0 turns it off), and 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 (mvk_metalfx.h).