Repository navigation
Conversation
…taged (RT-DEPTH-COPY-ENCODING-MISMATCH) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Test report from a combined build on a second NVIDIA machine. Counts only. Machine: Windows 11, RTX 4070 SUPER, NVIDIA 621.01, 64 GB, own 1.0.2.1 copy. Build: Shaders: translated on Pipeline cache: warm and complete, 26,503 of 26,503 (9.6 GB).
Recipe:
AI-assisted (Claude Code). |
MoonEyes
left a comment
There was a problem hiding this comment.
LGTM
Setup: Windows 11 Pro 26300, MSVC 19.44.35230.0 (VS 2022), CMake 3.31.6 + Ninja, RelWithDebInfo, -DLEONIDA_REQUIRE_VULKAN=ON, Vulkan SDK 1.4.363.0. main = b9320a118. Only replay_copy_offset_test was built and run (ctest -R "^replay_copy_offset$"). Not run: the whole ctest set, any game boot.
Head 365b8ff08.
- PR head:
replay_copy_offsetPassed (1/1). main: Passed (1/1).- PR merged into
mainlocally: Passed (1/1).mainchangedvulkan_replay.hand this test since the PR's base (the +4 host-prefix staging); git merged both files without conflict and the merged test passes, so the PR does not need a rebase for this test. - Mutant (merged test,
runtime/src/vulkan_replay.hofmain): Failed with 7FAIL:lines: 5 timesa depth copy between different encodings (or multisampled formats) records no copy, thena stencil plane copy between different formats is staged, stencil aspect on both sidesandthe stencil scratch holds one byte a texel. That is the "7 checks fail" of the description, reproduced against currentmain.
Not checked here: the GPU tests listed in the description (d3d12_stencil_copy, d3d12_depth24_draw and the others). replay_copy_offset_test records the Vulkan calls through mocks and makes no device.
AI-assisted: yes (Claude Code built and ran the tests)
|
The red CI jobs here are failures that
Nothing in this PR touches those files. AI-assisted (Claude Code). |
365b8ff to
ea76393
Compare
Claimed in the coordination issue as: RT-DEPTH-COPY-ENCODING-MISMATCH (#1608 (comment)). 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 replay: copies between depth formats that differ go through transfer scratch (RT-DEPTH-FORMAT-COPY-STAGED) #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