mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:30:52 +01:00
[PR #1905] replay: depth copies between different encodings are left out, stencil planes staged (RT-DEPTH-COPY-ENCODING-MISMATCH) #1914
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1914
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1905
Author: @Snooozs
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:depth-copy-encodings📝 Commits (2)
daf31b8replay: copies between depth formats that differ go through transfer scratch (RT-DEPTH-FORMAT-COPY-STAGED)365b8ffreplay: depth copies between encodings are left out, stencil planes staged (RT-DEPTH-COPY-ENCODING-MISMATCH)📊 Changes
3 files changed (+184 additions, -3 deletions)
View changed files
📝
docs/d3d12_vulkan.md(+11 -0)📝
runtime/src/vulkan_replay.h(+61 -2)📝
runtime/test/replay_copy_offset_test.cpp(+112 -1)📄 Description
Claimed in the coordination issue as: RT-DEPTH-COPY-ENCODING-MISMATCH (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7166819597). The follow-up to #1893 that @OreoFR left to me.
Depends on: #1893 (this branch contains its commit; the diff to review is the last commit).
What and why
vkCmdCopyImageaccepts depth/stencil images only when their formats are equal (VUID-vkCmdCopyImage-srcImage-01548), whichever aspect is copied. #1893 stages the depth plane between formats of one encoding. Three cases were still handed to the driver:D24_UNORM_S8_UINTintoD16_UNORMorD32_SFLOAT,D32_SFLOAT_S8_UINTintoD16_UNORM): D3D12 has no such copy, but the layer can make one out of a legal console copy, since the console's D16S8 is made as D24S8 on NVIDIA. That one copy is now left out and logged (at most 8 lines), and the list still replays; refusing it would drop the whole submission. A converting copy can replace this if a title is ever seen asking for it.vkCmdCopyImageToBuffertakes no multisampled image. Left out, as above.depth_stencil_copymakes the choice; nothing changes for equal formats, colour copies or depth to colour.Tested
replay_copy_offset_test(no GPU), new cases: exit 0 with the change; withvulkan_replay.hof #1893 under the same test 7 checks fail (five left-out pairs, the staged stencil plane, its scratch size).vk_command_replay,d3d12_noop_copy,d3d12_clear,d3d12_depth_resolve,d3d12_typeless_depth,d3d12_subresource_copy,xbox_depth_storage,d3d12_copy_xfmt,d3d12_a8_copy,d3d12_stencil_copy,d3d12_depth24_draw,replay_copy_offset: 12 of 12 pass.scripts/check_no_game_data.pyon the changed files: OK.ctestset, a retail boot with this commit, AMD or Intel. Whether the retail title makes any of these copies is not known.AI-assisted: yes (Claude Code).
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.