upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/pe_loader.cpp
diff options
context:
space:
mode:
authorlloyd <nichlloyd@gmail.com>2026-11-22 12:10:35 +0200
committerlloyd <nichlloyd@gmail.com>2026-11-22 13:33:50 +0200
commite1b3fca96d5d004e8b20de06a5a148b7da1b4363 (patch)
tree9e0855d9e983ea745c3304a529584b05fb0760d1 /runtime/src/pe_loader.cpp
parentbb2e18421dac527374eb837c88b5063c5d96f81f (diff)
Runtime: depth <-> colour copies through a scratch buffer
CopyResource and CopyTextureRegion between D32_FLOAT and R32_FLOAT/UINT/SINT, and between D16_UNORM and R16_FLOAT/UNORM, were refused at execution because vkCmdCopyImage cannot mix a depth and a colour aspect. Host D3D12 and WARP copy the bits, and #1134 listed these as not covered. The replay now stages each such region image -> scratch buffer -> image. The scratch comes from a new ScratchBuffers pool (vulkan_scratch.h): device-local chunks handed out while a list is prepared and retired with the submission's timeline value, like the depth24 converter's scratch, but enabled on every GPU. Without it the copy is refused as unsupported before anything is written. Still refused: depth with stencil (two planes), D24 stored as D32, and multisampled textures. Tests: d3d12_copy_xfmt gains five depth <-> colour cases (R16 -> D16 both ways, D32 -> R32_UINT, three mips, and a D32 -> R16 negative control), and a depth <-> colour mismatch now fails it. vk_command_replay_test part H runs a D32 -> R32 -> D32 round trip through the replay, and checks that a list is refused with no scratch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions