Repository navigation
Conversation
|
Verified head
AI-assisted. |
…fter a refused call ItsNotRexed#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. |
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.