Repository navigation
Conversation
|
Verified head
AI-assisted. |
…fter a refused call #6610 refuses the whole batch of a list whose Close failed, so executing the invalid list in the refused loop ran nothing: the readback stayed zero and the stencil plane read 0x00 where the test wanted the clear's 0x5a (depth happened to match). Clear and read back in valid lists of their own, and keep only the refused call in the invalid one, so the check still proves that executing the refused list leaves the destination at the clear values.
4ed299c to
e556bee
Compare
|
Rebased onto The test file did not conflict; AI-assisted: written with DeepSeek V4.1 Flash in an OpenCode session. Every number above comes from a real run on the RTX 4070 / NVIDIA 621.14 / Windows 11 26200 machine. |
|
Tested
The 15 host quirks are the D24S8/D32S8 stencil MIN/MAX and depth AVERAGE cases where the NVIDIA driver differs from the clears and the layer matches them, the same set as on the RTX 4070 in #8720. Full AI-assisted (Claude Code). |
|
Tested e556bee on RTX 5070 Ti (Blackwell, subgroup 32), NVIDIA 621.01, Windows 11, MSVC 14.44 (VS 2022 17.14 Build Tools), CMake 4.5.1 + Ninja, Vulkan headers sdk-1.4.363.0 (fetched), SPIRV-Tools 2026.4, no game copy: pass. I applied the diff (runtime/test/d3d12_depth_resolve_test.cpp) to a build of main at dfe4e4a, rebuilt only d3d12_depth_resolve_test and ran it. On main the test fails here with the eight refused resolves reporting "Close 0x80070057, destination changed" (D24S8 depth AVERAGE rect 1, D24S8 stencil AVERAGE rect 0, and six more), the same list as #8720. With this PR it exits 0: 51 of 51 resolves match the host on the RTX 5070 Ti with 0 host quirks and 7 refusals alike, 37 of 37 match against WARP, and the summary line reads "88 host comparisons matched, 12 refusals kept the destination, 0 edge MIN/MAX pairs differ". The edge cases were skipped because glslangValidator was not available at build time. I also ran #7905 and #7930 the same way and they give the same result here, so all three fix the same failure; it is worth picking one and closing the others. AI-assisted (Claude Code): built and ran the test as described above. No game data was used. |
|
Tested on Windows 11 x64 with an NVIDIA GeForce RTX 5070 Ti (driver 617.42), MSVC 14.44, RelWithDebInfo: this PR's change to
For comparison: #7930 and #7905 also keep the destination check and pass here with the same counts; #9066 passes too, but stops comparing the destination. AI-assisted test run (Claude Code). |
|
Tested
The 24 host quirks are the RTX 3080's own D3D12 driver differing from the clears (the layer matches them), more than the 15 reported on the 4060 Laptop; they don't affect the result. No game files used. AI-assisted (Claude Code). |
|
Tested e556bee on an RTX 5070 (NVIDIA 621.24, Windows 11 26100) on top of main 867d922: passes, with and without One thing I noticed reading the diff, though. The layer's own loop over |
|
Tested on AMD Radeon RX 9070 XT (RDNA4, gfx1201), Adrenalin 26.11.2 (32.0.32029.2010), Windows 11 26200, MSVC (VS 2022 Build Tools). Head e556bee applied onto current main 867d922.
Built with |
…om the resolve list's Close run_invalid is also used for resolves that succeed (the layer's own loop), so the split path must close the resolve list before the readback barrier is recorded and choose StateBefore from that result: RESOLVE_DEST when it closed, DEPTH_WRITE when the batch was refused and the clears in the first list stand. Spotted in review by @JaumeMarRib on #8828.
|
You are right, and it is fixed in What the split path does now:
Rerun on RTX 4070 / NVIDIA 621.14 / Windows 11 26200: Same for the barrier in the successful cases, so the declared state now matches what ran. Thanks for reading the diff — that one would have stayed wrong while every test passed. AI-assisted: written with DeepSeek V4.1 Flash in an OpenCode session. Every number above comes from a real run on the machine named in it. |
|
Closing this as a duplicate — I should have found the earlier PRs before claiming it, and that is on me. The same test, the same #6610 follow-up, five PRs on
So this is the second-newest of five, not a new fix. Per the repository's own rule the older PR wins and this one should close; the choice between #7905/#8415 and #9066 is the maintainers' and o-psi's to make (#8415 is the one described as the consolidation point). One thing worth carrying over, because it cost a review round here and applies to every variant that splits the lists: Thanks to everyone who ran it: smowlyy (RTX 5060 Ti), awab128 (4060 Laptop), BeetjeMatig and CrashOverride1010 (5070 Ti), LewisStephens99 (3080), JaumeMarRib (5070) and 4usphs (RX 9070 XT). Their checks are worth more on the PR that lands — #7905, #7930 and #8415 already have their own runs, and re-posting a line there is cheap if the maintainer asks for a specific card. AI-assisted: written with DeepSeek V4.1 Flash in an OpenCode session. |
|
Tested merged onto
Also merged with #8496, #7256, #7475 and #6149 (as a patch) in the same tree, with no conflicts; AI-assisted (Claude Code) |
What
runtime/test/d3d12_depth_resolve_test.cppfails its eight refused cases on NVIDIA (Ada):refused D24S8 depth AVERAGE rect 1: Close 0x80070057, destination changedand seven siblings.#6610refuses a whole batch when a list's recording failed (runtime/shims/d3d12_com.cpp:1549-1555,ExecuteCommandLists: list N is invalid; refusing batch). The refused loop executed its invalid list and then expected the destination to hold the clear values, which was true only while the layer replayed an invalid list. Now nothing of that list runs — neither the clears nor the readback copy — so the readback stays zero: the stencil plane reads0x00where the test wants the clear's0x5a. Depth matched by coincidence (0.0), which is why the message said "destination changed" without saying where.Measured with a temporary print in the test (reverted before this commit): all eight cases had
depthidentical to the expectation andstencilas the only mismatch, and each run carriedlist 0 is invalid; refusing batch.Change
Clear the source and the destination in a valid list, put the refused call in the invalid one, and read the destination back in a third valid list. The check still proves that executing a refused list leaves the destination at the clear values, and no longer depends on the readback buffer's initial contents or on replaying an invalid list.
Tested
d3d12_depth_resolve_test.exealone,main dde82f27plus this commit: exit 1 → 0. Summary:145 host comparisons matched, 12 refusals kept the destination, 0 modes the device lacks were refused; 20 edge MIN/MAX pairs differ, anddepth/stencil resolves against WARP: 71 of 71 match, 0 host quirks.cteston the same machine: 262 tests, 4 failures → 2. The two left are the knownd3d12_vulkan_deviceline 6574tiles == 1(d3d12_vulkan_device_test: reach Device10's CreateReservedResource2 on the inner device #8496's root cause) andd3d12_indirect_dispatch_count(host 6/10, layer 0/0, the d3d12_indirect_dispatch_count fails on main since #4312: cs_indirect_dispatch_count.comp still reads its root UAV from s0:s1 #6162 case fixed by cs_indirect_dispatch_count: read the root UAV from s4:s5, as #4312 moved it (#6162) #7133 there). 12 did not run (package-gated, no game copy).-DLEONIDA_REQUIRE_VULKAN=ON.No game files were used, and nothing from the package is quoted.
Claim: #8683 (comment) (new item). Behaviour relied on: #6610, merged.
AI-assisted: written with DeepSeek V4.1 Flash in an OpenCode session. Every number, log line and command above comes from a real run on the machine named in it.