Repository navigation
d3d12_depth_resolve_test: a refused resolve reads the destination through lists that run - #7909
justrealyme wants to merge 1 commit into
Conversation
…ough lists that run A refused case recorded the destination's clear, the resolve and the copy into the readback buffer in one list. Its Close fails, so ExecuteCommandLists refuses the whole list: the clear and the copy never ran, and the test compared whatever memory the readback buffer was given with the clears. On an RTX 5070 Ti (NVIDIA 617.42) that failed every run, with 5 to 8 different refused cases reported as "destination changed" from run to run. The refused path now clears the destination in a list of its own, submits the refused list, then copies the destination out from DEPTH_WRITE in a third list, so "the refusal kept the destination" is what is compared. Cases whose Close succeeds are recorded and run as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested
AI-assisted (Claude Code). |
|
Tested
AI-assisted (Claude Code). |
|
Independent build + test: PASS AI-assisted (Claude Code). Windows 11 x64, MSVC 19.44.35220, Ninja RelWithDebInfo, NVIDIA GeForce RTX 3080 driver 621.24 / 32.0.16.2124 (Vulkan layer and host D3D12), plus WARP. Head
The refused-resolve path now clears the destination in a separate list, submits the refused list, and copies out in a third list with the barrier from DEPTH_WRITE. Because the refused list still has its own target clear, a layer that ran only the clears and skipped the resolve would also pass. That's fine for "the destination is kept", but it can't tell "dropped the whole batch" apart from "ran part of it". FYI: #7905 and #7930 make the same test fix in different ways. Each one on its own makes this test pass here, so only one of them should be merged. |
|
Thanks @skorex, agreed: #7905 makes the same fix and was opened first (24 s earlier), so I'm closing this one in its favour. It adds nothing #7905 lacks beyond test results, which I've posted there: #7905 passes 5 of 5 runs on an RTX 5070 Ti with the edge cases on. The AMD RX 7800 XT result above applies to the same change. |
Claimed in the coordination issue as: #7804 (comment)
What and why
d3d12_depth_resolve_testchecks that a refusedResolveSubresourceRegionkeeps its destination. Each refused case recorded the destination's clear, the resolve and the copy into the readback buffer in one list. ItsClosefails, soExecuteCommandListsrefuses the whole list ([rt] d3d12: ExecuteCommandLists: list 0 is invalid; refusing batch): the clear and the copy never run, and the test compared whatever memory the readback buffer was given with the clears.On an RTX 5070 Ti that made clean
mainfail every run, with a different set ofrefused ... destination changedlines each time, for example:Other setups pass when that memory happens to hold the expected bytes.
The refused path in
resolve_and_readnow:DEPTH_WRITE(the refused list's barriers did not run either),so the comparison is really "the refusal kept the destination". Cases whose
Closesucceeds are recorded and run exactly as before. The host path (which never executes a refused list) is unchanged.Tested
NVIDIA GeForce RTX 5070 Ti, driver 617.42, Windows 11 build 26300, VS 2022 Build Tools (MSVC 19.44), Windows SDK 10.0.26100, RelWithDebInfo.
main(dde82f2)ctest -j 8, then twice alone)(The edge cases were skipped in both, since this machine has no
glslangValidator.)Doesn't overlap #6091 or #7638, which change other parts of this file.
AI-assisted: yes (Claude Code)
Checklist
docs/design.md, with how it was confirmed. (n/a: no translator change)🤖 Generated with Claude Code