Restore views after partial texture eviction #4870
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!4870
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4869"
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?
@senduora on GitHub · 2026-12-01 12:09 UTC · original
senduora:fix/restore-partially-evicted-texture-views→main· +64 −0 · 1 files · 1 commits · openWhat it changes
Texture eviction can reset one descriptor slot before it finds a busy or rewritten slot. It keeps the host texture in that case, but earlier slots may remain waiting even though the texture is still available. Queue the existing texture-made notification after a partial reset so the normal submission path can restore the affected views. That path checks the current descriptor before publishing it.
How it was tested
5fabb46with only the regression test fails because slot 0 still has no matching host descriptor after the waiting slots are processed.730cc2e. It checks that both slots show the original retained texture.cargo test --locked --offline -p victory-gpu --lib a_busy_texture_view_wakes_the_views_reset_before_it -- --nocapture --test-threads=1.Checked for overlap
@andrewpozdnakov7-jpg on GitHub · 2026-12-01 12:32 UTC · original
I found another case on
730cc2ed.evict_slotsadds each reset descriptor toWAITING, including placed texture SRVs.make_waitingremoves the list when the texture is republished. It recognizes direct resource views, leaving a placed SRV reset until a later draw mirrors it.479b33d7 checks that the placed SRV still resolves to the retained texture before mirroring it. The lookup uses the same normalized shape and copy destination precedence as normal placed texture resolution and does not allocate a texture on a miss.
I ran the exact
make_waitingfrom both heads in one Windows Rust fixture with the descriptor heap and texture lookup stubbed. The original restored the direct SRV only. The patch also restored the matching placed SRV and left the rewritten, unresolved, buffer and UAV views alone. The production changes compiled in the Windowsvictory-gputest target and the staged asset check passed. This fixture did not verify hardware descriptor writes or rendering.Please keep the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding the change in.AI-assisted with OpenAI Codex.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.