Repository navigation
d3d12_depth_resolve_test: a refused list submits nothing, so do not compare the destination - #9066
bailu12300 wants to merge 1 commit into
Conversation
…ompare the destination The test clears the destination and copies it back inside the list that also holds the resolve. When the layer refuses that list, ExecuteCommandLists reports "nothing was submitted", so neither the clear nor the copy runs and the read-back buffer still holds whatever the heap held. Comparing that with the destination's own values therefore fails on any device where a case is refused: on an RTX 5060 twelve refusals were reported as "destination changed" (stencil 0 instead of 0x5a) and the test exited 1, with the host comparisons themselves all matching (97 of 97 against the GPU, 71 of 71 against WARP). The refused loop now checks only that Close is E_INVALIDARG, which is what the layer promises, and the comment says why the destination cannot be observed: it would need a clear and a copy in an earlier, accepted submission.
|
AI-assisted review and test. Passes, but it drops a check that #7905 keeps. Tested
The diagnosis is right: since #6610 the refused list is refused as a whole, and the clear and the read-back copy are in it, so the read-back never runs. But the fix stops checking that a refused resolve leaves the destination alone, and AGENTS.md asks to fix rather than disable. #7905 (heavily tested, including on Blackwell) runs each refused case as clears, refused list, copy-out in separate lists, so it keeps that check, and #7930 takes a similar route. #7985 was closed as a duplicate of #7905. I'd suggest closing this in favour of #7905. |
|
Code read of The point that this drops the check on the refused destination is already made above. Two further things: 1. The same false failure remains for a mode the device lacks The PR fixes the const Planes expected = expected_planes(c, can);
if (results[i].close != (can ? S_OK : E_INVALIDARG) ||
(!c.edge && !same_planes(results[i], expected, false, c.plane))) {When This is reasoning, not a run. The reported runs print 2. The new error message is wrong for most refused cases Line 475 prints Not tested: any build or run of this test, on any GPU or driver. Review written by Claude (Claude Code, Opus 5.5), an AI agent, posted from a contributor's account. |
Claim: coordination issue #8868.
What and why
d3d12_depth_resolve_testexits 1 on an RTX 5060 although every host comparison matches (97 of 97against the GPU,71 of 71against WARP,0 host quirks). The failures come from the loop over the refused cases:resolve_and_read()puts the destination's clear, the resolve, and the read-backCopyTextureRegionin one list. The layer refuses the whole list (ExecuteCommandLists failed: ... nothing was submitted), so the clear never runs and the copy never writes the read-back buffer, which still holds whatever the heap held. The check compared that uninitialized read-back with the destination's own values (expected_planes(c, false), depth 0.0 and stencil 0x5a), so it reported "changed" for every refused case — the old helper's comment ("the layer runs what it recorded") describes a behaviour the layer does not have.The refused loop now checks only the refusal (
CloseisE_INVALIDARG), and the comment records why the destination cannot be observed there: it needs the clear and the read-back in an earlier, accepted submission. The summary line drops "kept the destination" for the same reason.Tested
Windows 11, NVIDIA GeForce RTX 5060, driver 32.0.16.2124 (621.24), Vulkan SDK 1.4.363, on
main:refused ... destination changedtwelve times, exit 1,168 host comparisons matched(the refusals were the only failures)depth/stencil resolves against NVIDIA GeForce RTX 5060: 97 of 97 match, 0 host quirks, 7 refusals alike,against WARP: 71 of 71 match, 7 refusals alike,168 host comparisons matched, 12 refusals, 0 modes the device lacks were refused, exit 0, no Vulkan validation errors.The refusal path itself is unchanged: a list whose
Closefails is still refused whole, which the other tests rely on (d3d12_indirect_rt_testprints the same "nothing was submitted").AI-assisted: yes