Repository navigation
VKD3D-Proton macOS 5.1
VKD3D-Proton macOS 5.1 is built from main (a3c9d40, #15). It makes Minecraft Bedrock's Ray Traced mode render correctly on the arm64 lane, gets Unreal Engine 5 Nanite games (Subnautica 2) running and drawing the right way up, finishes the geometry-shader fixes from #11, and adds a DLSS render scale override.
Ray tracing (Minecraft Bedrock, Ray Traced mode)
Before 5.1, the game hit GPU page faults and an MMU fault, then corrupted chunks (missing surfaces, sky-coloured mirror materials), then GPU watchdog kills (kIOGPUCommandBufferCallbackErrorImpactingInteractivity) during ray-query traversal.
- Acceleration-structure copies get memory of their own. The size an app is told for a compacted or cloned BLAS is the structure's own size. It doesn't include the heap size and placement alignment. A compacted BLAS placed in the app's memory could run into the next one, and VKD3D-Proton's D3D12 games pack them tightly. Copies now write to memory of their own.
- Null and unknown structure addresses in TLAS instances and ray queries now find an empty structure that every ray misses. Before, they read memory that holds no structure, which caused the GPU page faults.
- BLAS vertices Metal can't read in place (16-bit components at offsets or strides that aren't multiples of 4, a zero stride) are repacked by a small kernel.
- A null RTAS descriptor keeps the null RTAS's address. It stored 0 before, so a ray query through it read address 0. This bug is in upstream VKD3D-Proton too.
- Shaders with ray queries stay on SPIR-V. Metal Shader Converter's modules have no binding for acceleration structures, so these shaders no longer go through it.
- The "no heap is bound" root-signature warning is logged once instead of every frame.
Unreal Engine 5 mesh shaders (Subnautica 2, UE 5.6)
- Nanite's mesh pipelines convert. SPIRV-Cross ran out of recompile passes on shaders whose helpers or 64-bit atomics turned up one per pass ("Maximum compilation loops detected"). VKD3D-Proton then crashed after the game's loading screen. All 64 of UE 5.6's Nanite hardware raster pipelines now convert, and the game runs.
- Mesh shaders draw the right way up. dxil-spirv declares D3D12's
SV_Positionas a variable of its own, and SPIRV-Cross's vertical flip skipped it. Nanite's hardware rasterizer drew the world upside down and faceted. It now matches the compute rasterizer and the vertex shaders.
Geometry shaders (#11)
- A vertex output wider than the geometry shader's input now compiles. Forza Horizon 3 failed with
assigning to 'float2' from incompatible type 'float4'(TEXCOORD, the float3NextNormal, fog parameters). The value is now narrowed or zero-padded and converted to the input's type. This is the fix from the 5.1 alpha shared in #11.
DLSS
METALSHARP_DLSS_SCALEsets the render scale for every DLSS mode. It takes a mode name (ultra_performance,performance,balanced,quality,ultra_quality,dlaa) or a fraction from 0.25 to 1, for games that pick the mode themselves. Minecraft's ray tracing resets its upscaler to Quality; with Performance it traces about 44% fewer rays and was much faster in game.
Tests
- New:
gs_narrow_dxilandgs_narrow_dxbc. tests/d3d12on the VKD3D-Proton lane (under FEX): 5.0's MoltenVK fails 4 tests (19 checks); 5.1 fails 1 (tiled3d, 1 check, failing the same way in both).- The compaction fix was checked with an offline Vulkan reproduction. Before it, the neighbouring BLAS broke in 7 of 18 slot and size layouts; with it, in 0 of 18.
- In game:
- Minecraft Bedrock 1.26.62, Ray Traced with DLSS: no chunk corruption, GPU faults or watchdog kills.
- Subnautica 2: renders upright and past the loading screen.
CI
- Metal source compilation runs on
macos-15, because GitHub no longer runsmacos-14jobs.
Known gaps
Still open from 5.0:
- Per-draw binding cost
- Predication
- Transform feedback
- DispatchRays
- Isolines
- Fence completion under heavy CPU load
- On Subnautica 2 this lane runs at about half Mullion's frame rate.
Built from a3c9d40. Each package holds its files, their licenses and SHA256SUMS.
- vkd3d-proton-v5.1-x86_64: VKD3D-Proton's
d3d12.dllandd3d12core.dll, with DXVK'sdxgi.dll,d3d11.dllandd3d10core.dll, for x86_64 Windows programs (x86_64-windows). Stage them together. - vkd3d-proton-v5.1-arm64: for an arm64 Wine that runs x86_64 programs with FEX (MetalSharp Wine): VKD3D-Proton's
d3d12.dllandd3d12core.dllas ARM64X (aarch64-windows, loaded by x86_64 programs as ARM64EC), with DXVK's x86_64dxgi.dll,d3d11.dllandd3d10core.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.1-universal: the universal (arm64 + x86_64), ad-hoc signed
libMoltenVK.dylibandMoltenVK_icd.jsonboth lanes run on, with Apple's Metal Shader Converter library (libmetalirconverter.dylib, unmodified, Apple-signed), which MoltenVK uses to convert DXIL compute, vertex and pixel shaders for VKD3D-Proton (METALSHARP_MSC=0turns it off). It runs MetalFX's scalers for VKD3D-Proton's and DXVK's DLSS and swap chain upscaling (mvk_metalfx.h).