GPU: revalidate bound depth state through the list tracker #3572
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!3572
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@spk-c on GitHub · 2026-11-30 01:16 UTC · original
spk-c:fix/revalidate-bound-depth-state→main· +5 −10 · 1 files · 1 commits · closed without mergingWhat 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
@spk-c on GitHub · 2026-11-30 09:45 UTC · original
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.
@trustno1-coder on GitHub · 2026-12-01 18:51 UTC · original
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