GPU: revalidate bound depth state through the list tracker #3572
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3572"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by spk-c on 2026-11-30T01:16:14Z.
What it changes
The draw-local
last_depth_statecache can be stale when a shader view, copy or internal pass changes the same host texture without changing the bound DSV. Revalidate through the command list's existing state tracker before each depth draw. The tracker already emits no transition when the state is unchanged.This is an alternative to #3041, not intended to be merged on top of it. Unlike its twin-only epoch key, this also revalidates textures without a colour twin. Related investigation: #3354. This does not fix the RT device removal.
How it was tested
VICTORY_LOW_EARLY_MB=0, D3D12 debug and full DRED, warmed cache.fbe3dc20with identical local diagnostics changes on both sides; the only additional source change was this patch. RT off: 120 seconds of world time each.Different draw counts and debug overhead prevent treating the FPS difference as a general performance gain. Copy-source and root-SRV state errors remain. RT-on runs still encounter
0x887A0005; depth-read messages fell from 8,601 to zero before the crash.cargo testpassed: no. No shader changes.draw.rsand is based on current upstream41adb551.git diff --checkpasses. The runtime figures above are from the earlier controlled worktree, not a fresh run of this exact branch. Draft pending clean-head validation.Checked for overlap
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by spk-c on 2026-11-30T09:45:16Z.
Follow-up: exact PR head
47f4465bwas built and run on my RTX 4090.The RT-off run actually reached the world and continued for over 14 minutes without device removal. The original bench parser missed the newer frame-log wording (
dropped ... draws or dispatches), so I corrected my local harness and reprocessed the first 120 seconds of the saved log. World detected after 36 s; 24 frame lines, mean 16.5 rendered FPS, median 16.8, 1% low 9.7. Across the entire RT-off log there were zero depth-read state errors, despite 267,431 other ID 538 messages (105,720 copy-source and 155,135 root-SRV messages among them). The RT-on run also had zero depth-read errors, but device removal still occurred within roughly 9 s of the first world frame line. The crash left no useful DRED breadcrumbs.This confirms the depth-state fix on the actual PR commit, not just the earlier dirty test build. It does not demonstrate a general FPS improvement or fix the RT crash. The failed unit-test runtime setup and incomplete full CI validation remain caveats.
I also fixed a local log-sharing issue in the benchmark harness and started independent comparisons for narrow place barriers, in-place copies, relay, texture pool and buffer pool. The pool diagnostic uses inferred texture descriptor addresses and a copy footprint, so its warnings alone are not proof of actual GPU out-of-bounds access. No game assets or raw logs are included in this PR.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:51:03Z.
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed