Repository navigation
d3d12_depth_resolve: check refused resolves against a destination cleared in its own list (#6610 follow-up) - #7905
Conversation
…ared in its own list (ItsNotRexed#6610 follow-up) ItsNotRexed#6610 makes ExecuteCommandLists refuse a whole batch that holds a list whose Close failed. resolve_and_read still recorded the clears, the refused resolve and the readback copies in one list and executed it on the layer, so since ItsNotRexed#6610 none of it runs and every refused case reads a buffer nothing wrote: eight "refused ... destination changed" lines and exit 1 on main. On the layer, the clears (and the edge draw) now run in a list of their own first. A list whose Close fails is still executed, and its destination is then read back in a third list, so a refused resolve is still checked against the destination the clears left. The host path is unchanged. Tested on Windows 11 build 26200, MSVC 14.52 (VS 2026), RTX 3060 (NVIDIA 616.92). d3d12_depth_resolve: main 9b60c92 fails 8 of 8 runs; with this, 5 of 5 pass, with the same counts (RTX 3060: 27 of 51 match, 24 host quirks, 7 refusals alike; WARP: 37 of 37) and 12 refusals keeping the destination. Full ctest: 236 of 237 pass; the remaining failure is d3d12_vulkan_device, which ItsNotRexed#7125 fixes, and with ItsNotRexed#7125 merged both pass. Not run: the edge cases (no glslangValidator at build time). No game data. AI-assisted (Claude Code). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested
AI-assisted (Claude Code). |
|
Tested
Note: #7930 fixes the same test the same way and also passes here, so one of the two can probably be closed. |
|
Independent run, Windows 11, NVIDIA GeForce RTX 5070:
|
|
Tested
AI-assisted (Claude Code). |
|
Independent build + test: PASS (one coverage note) AI-assisted (Claude Code). Windows 11 x64, MSVC 19.44.35220, Ninja RelWithDebInfo, NVIDIA GeForce RTX 3080 driver 621.24 / 32.0.16.2124 (Vulkan layer and host D3D12), plus WARP. Head
Coverage note: with FYI: #7909 and #7930 make the same test fix in different ways. Each one on its own makes this test pass here. |
|
Tested
Only AI-assisted (Claude Code); no game files. |
From the review on ProjectLeonida#7905: a successful case on the layer again records the clears, the edge draw and the resolve in one list, as the host path does. Only a list whose Close failed is run between a list of the same clears and a list that reads the destination back, so the lacking-mode path stays covered. Tested on an RTX 3060 (NVIDIA 616.92) with MSVC 14.52: d3d12_depth_resolve passes 5 of 5 runs with the same counts; full ctest 236 of 237 (the other failure is d3d12_vulkan_device, fixed by ProjectLeonida#7125). No game data. AI-assisted (Claude Code). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks @MartinIndra02, done in 630e9d8: the lists are split only when |
|
Tested 630e9d8 on NVIDIA GeForce RTX 5070 Ti (Blackwell), driver 617.42, Windows 11 build 26300, VS 2022 Build Tools (MSVC 19.44), Windows SDK 10.0.26100, Vulkan SDK 1.4.363.0, RelWithDebInfo: pass, and it fixes the failure
I'm closing my #7909 as a duplicate of this one (same fix, opened 24 s later); its AMD RX 7800 XT result from another tester is in #7909, for the same root cause. Synthetic test only, no game files. AI-assisted (Claude Code). |
|
Tested |
|
Tested 630e9d8 merged onto main 5d74c27 on AMD Radeon RX 6700 XT (RDNA2, Navi 22, gfx1031), AMD 26.11.2 (Windows driver 32.0.21045.29003), Windows 11 Pro 26200, MSVC 19.44, RelWithDebInfo; AMD's D3D12 is the native host: pass
|
|
Tested
The other two open fixes for this (#7905, #7930, #9066) also pass here. AI-assisted (Claude Code); no game files. |
|
Tested
For the maintainer: #7930 (the other |
crastinator
left a comment
There was a problem hiding this comment.
Tested 630e9d80f under Wine and Proton on a real AMD GPU: d3d12_depth_resolve passes in all three, nothing new.
AMD Radeon RX 6700 XT (gfx1031), RADV Mesa 26.3.1, CachyOS Linux 7.3.5 (niri, XWayland). The Windows runtime is cross-built with clang-cl + xwin, merged onto main 867d922f0, and the full ctest (271 tests) is diffed against main under three Wines: WineHQ 11.22, Proton CachyOS 11.0 (cachyos-11.0-20261015-slr; vkd3d-proton 0bb64c5, DXVK 3.1.1-97) and Proton Experimental 11.0 (experimental-11.0-20261112; vkd3d-proton 2576c0b, DXVK 3.1.1-209). The Proton runs use files/bin/wine with a proton run-made prefix and WINEDLLOVERRIDES="d3d12=n;d3d12core=n;dxgi=n", as in docs/testing.md.
- WineHQ 11.22:
d3d12_depth_resolvefixed (onmain: the eightrefused ... Close 0x80070057, destination changedlines), nothing new. - Proton CachyOS 11.0 and Proton Experimental 11.0: fixed, nothing new from this PR (
d3d12_noop_copyis flaky under Experimental onmain).
#7930 fixes the same failure a different way (a list of its own for the refused resolve's readback), with the same result here, so only one of the two is needed. #8415 builds on this one.
AI-assisted (Claude Code). Synthetic resources only, no game files.
Item: etty8080's finding on #7804 (#7804 (comment)), no ID yet.
What
#6610 makes
ExecuteCommandListsrefuse a whole batch that holds a list whoseClosefailed ("list 0 is invalid; refusing batch").resolve_and_readstill recorded the clears, the refused resolve and the readback copies in one list and executed it on the layer, so since #6610 none of it runs and every refused case reads a buffer nothing wrote: eightrefused ... destination changedlines and exit 1 onmain. The layer does not write the destination; the test never reads what the clears left.How
A successful case still records the clears, the edge draw and the resolve in one list, on the layer as on the host (split only on failure since 630e9d8, from the review). When
Closefails on the layer (run_invalid), the refused list is run between a list of the same clears and a list that reads the destination back, so "a refused resolve leaves the destination as it was" is still checked against the destination the clears left, for the refused cases and for the modes a device lacks. The host path is unchanged.Tested
Windows 11 build 26200, MSVC 14.52 (VS 2026), NVIDIA GeForce RTX 3060 (driver 616.92), RelWithDebInfo + Ninja.
d3d12_depth_resolve:main9b60c92cfails 8/8 runs; with this, 5/5 pass there and 3/3 rebased ondde82f27, with the same counts (RTX 3060: 27 of 51 match, 24 host quirks, 7 refusals alike; WARP: 37 of 37) and 12 refusals keeping the destination.After the review change (630e9d8): 5/5 pass, same counts.
Full
ctest: 236/237; the remaining failure isd3d12_vulkan_device, which d3d12_vulkan_device: check PC CreateReservedResource2 behind the Xbox proxy, not through slot 78 #7125 fixes (with d3d12_vulkan_device: check PC CreateReservedResource2 behind the Xbox proxy, not through slot 78 #7125 merged both pass).Not run: the edge cases (no
glslangValidatorat build time), so the edge draw in the first list is untested here.Touches the same file as d3d12 tests: a Wine-like host without DXGI skips the host comparison instead of failing #7638 (host-comparison skip), in a different hunk.
No game data in this PR (
scripts/check_no_game_data.pyon the file: clean).AI-assisted (Claude Code).
🤖 Generated with Claude Code