Repository navigation
d3d12_depth_resolve: a list whose Close failed is not executed (fails on main since #6610) - #8650
KevinPratap wants to merge 1 commit into
Conversation
… on main since ItsNotRexed#6610) The refused resolves executed their list after Close returned E_INVALIDARG and expected the layer to run its valid commands, then checked that the destination kept its clear values. Since ItsNotRexed#6610 ExecuteCommandLists refuses such a list, as the host does, so nothing ran and every refused case reported "destination changed" (exit 1). A list whose Close failed is now never executed, on either device; refused cases and modes the device lacks check Close == E_INVALIDARG. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Grimkeh
left a comment
There was a problem hiding this comment.
Independent Linux CPU review (3c61c83e)
What changed: d3d12_depth_resolve_test.cpp — a command list whose Close failed is not executed (regression vs #6610).
Checked:
- Diff is a focused test harness fix; no game files.
- Full D3D12 runtime binary not exercised here (CPU-only review of the test change).
Looks correct for the described Close-failure path.
|
Tested 3c61c83 on Windows 11 with Vulkan validation enabled. The depth/stencil resolve test passes on both GPUs. The AMD run also exercises the path for unsupported resolve modes.
On parent 867d922, each adapter reports eight I built AI-assisted. |
|
Tested
Overlap note: #7905 (opened earlier, with many independent passes) and #7930 (marked there as its duplicate) fix the same post-#6610 failure. The difference is coverage. #7905 keeps checking that a refused resolve leaves the destination as the clears left it: it clears in one list, runs the refused list, then reads back in a third list. This PR drops that check and relies on #6610's own AI-assisted (Claude Code). No game files. |
|
Closing as a duplicate of #7905 and #7930, which fix the same |
Claimed in the coordination issue: claim (new test item, ID to be assigned).
What broke
d3d12_depth_resolveexits 1 onmainsince #6610 ("reject null arrays and invalid lists in ExecuteCommandLists"), on any device.For its refused resolves, and for the modes a device lacks, the test recorded the clears, the resolve and the readback copies in one list. When the resolve made
ClosereturnE_INVALIDARG, it executed that list anyway, withrun_invalid = true("the layer runs what it recorded"), and checked that the destination kept its clear values. Since #6610, the layer'sExecuteCommandListsrefuses a list whoseClosefailed, as the host runtime does ([rt] d3d12: ExecuteCommandLists: list 0 is invalid; refusing batch). So the clears and copies never run, the readback stays empty, and every refused case printedrefused … Close 0x80070057, destination changed.The change (test only)
resolve_and_readlosesrun_invalid: a list whoseClosefailed is never executed, on the layer or on the host, and its planes stay empty.Close == E_INVALIDARG. A mode the device lacks checks itsCloseand no longer compares planes it can't have.refusals failed at Closeinstead ofrefusals kept the destination. Nothing in the repository parses it.The "destination kept" property is now enforced one level up: the whole list is refused. #6610's own tests cover that refusal, so this test no longer re-checks it through a destination it can't observe. The host comparisons and the edge MIN/MAX checks are unchanged.
Tested
Windows 11, RTX 4050 Laptop (NVIDIA 592.82), MSVC 14.44 RelWithDebInfo, on
main867d922f0:128 host comparisons matched, 12 refusals failed at Close, …; 20 edge MIN/MAX pairs differ. Norefusing batchline in the log any more.destination changedfailures. Restored: exit 0 again.AI-assisted (Claude Code).
🤖 Generated with Claude Code