diff options
| author | Jolymmiles <75259437+Jolymmiles@users.noreply.github.com> | 2026-11-22 19:18:06 +0400 |
|---|---|---|
| committer | Jolymmiles <75259437+Jolymmiles@users.noreply.github.com> | 2026-11-22 19:18:06 +0400 |
| commit | ef4d3053b1e0a7d6e19f97416cc703278dc823a0 (patch) | |
| tree | 26ad3955981bc80178f5b4d6d94faf3e872cd04e /runtime/src/pe_loader.cpp | |
| parent | 6a6704df1592e1dc4a3215ddf1423a78adb52045 (diff) | |
Depth/stencil region resolves keep the texels around the rectangle
A ResolveSubresourceRegion of a depth or stencil plane runs in a rendering scope whose render area is the source
rectangle, and Vulkan resolves only inside it. MoltenVK (1.4.2 and 1.4.3) resolves the whole destination
subresource: it resolves through Metal's store action, which has no render area. d3d12_depth_resolve failed its
eight MIN/MAX rectangle cases under Wine on an M3 Max for that reason.
The texels around the rectangle now go into copy_scratch before the scope and back after it, in up to four bands, on
every GPU: no device property reports the behaviour. vk_command_replay_test part I resolves a D32 rectangle natively
and checks the texels around it; it failed on MoltenVK before this change (all 28 overwritten) and passes on
MoltenVK and KosmicKrisp, with no validation errors on KosmicKrisp.
AI-assisted.
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions