Repository navigation
d3d12_depth_resolve_test: run a refused resolve as clears, refused list, copy (red since #6610) - #7985
Closed
DeSunShine wants to merge 1 commit into
Closed
d3d12_depth_resolve_test: run a refused resolve as clears, refused list, copy (red since #6610)#7985DeSunShine wants to merge 1 commit into
DeSunShine wants to merge 1 commit into
Conversation
…st, copy (red since ItsNotRexed#6610) ItsNotRexed#6610 made ExecuteCommandLists refuse a batch with a list whose Close failed, as D3D12 never runs such a list. The refused-resolve check still recorded the clears, the refused resolve and the copy-out in that one list and expected the clears to have run, so all 8 layer refusals came out 'destination changed' and the test failed on main (bisected to 4da7164 on an RTX 4090). A refused case now runs three lists: the clears, the list whose Close fails (the layer runs none of it), and a copy of the destination, which must still hold the clears. Host comparisons are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 23, 2026
1 task done
This was referenced Nov 23, 2026
|
Tested
(Noted that #7905 makes the same change; this is only a result for this head on RDNA4.) AI-assisted (Claude Code). |
|
Tested 0230e34 on NVIDIA GeForce RTX 4060 (Ada), driver 621.24, Windows 11 Pro 10.0.26300, MSVC 14.51,
A second NVIDIA card where the old readback relied on memory nothing wrote, after the RTX 4090. AI-assisted (Claude Code). No game files. |
Contributor
Author
This was referenced Nov 23, 2026
This was referenced Nov 23, 2026
Open
This was referenced Nov 23, 2026
This was referenced Nov 23, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: new TEST item, #7913 (comment)
Depends on: none. Follow-up of #6610.
What and why
d3d12_depth_resolvehas been red onmainsince #6610 (4da716493). I bisected it on an RTX 4090: it passes at7deb162b0and fails from4da716493on. All 8 layer refusals printrefused … Close 0x80070057, destination changed.#6610 made
ExecuteCommandListsrefuse a whole batch that contains a list whoseClosefailed. That is right, because D3D12 never runs such a list. The test's refused-resolve check, though, recorded the clears, the refusedResolveSubresourceRegionand the copy-out in one list. It executed that list anyway and expected the clears to have run. Now nothing runs, so the readback is not the cleared destination.A refused case (
run_invalid) now runs three lists:Closeand run normally;Closefails (the layer must run none of it);Step 3 still catches a layer that replays any part of a refused list. Host comparisons (
run_invalid = false) record and run exactly as before. The submit/wait code moved into a small lambda shared by the three lists.Tested
NVIDIA GeForce RTX 4090 (driver 621.24), Windows 11 Pro 26200, MSVC (VS Build Tools 18) + Ninja, Vulkan SDK 1.4.363, on current main:
d3d12_depth_resolve_test.exe, 3 runs: rc 0. Against the RTX 4090 it gives "74 of 97 match, 15 host quirks, 7 refusals alike", the same as before d3d12: reject null arrays and invalid lists in ExecuteCommandLists #6610. Against WARP: 71 of 71, 7 refusals alike. Overall "12 refusals kept the destination".ctest -R ^d3d12_depth_resolve$withLEONIDA_VK_VALIDATION=1: passed, no validation errors.mainwithout this change: rc 1, 8 ×destination changed.AI-assisted: yes (Claude Code)
Checklist
docs/design.md, with how it was confirmed. (n/a: test-only)