Release resources held by freed dynamic descriptor slots #1627
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!1627
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1627"
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?
@chaseb64 on GitHub · 2026-11-28 22:34 UTC · original
chaseb64:fix/dynamic-view-resource-retention→main· +80 −25 · 4 files · 1 commits · merged 2026-11-29 08:16 UTCWhat it changes
Dynamic descriptor slots in the host heap keep strong references to resources they describe. A returned slot holds its last resource until another allocation writes it. Free slots can therefore prevent reclamation of buffers that the game has stopped using.
Take those references when returning slots from completed detached command lists and when resetting or destroying a recording. Retire the references through the existing submission-based retirement queue after dropping the allocator and slot locks. Attached command lists can still be resubmitted, so their returned slots keep their resource references until overwritten.
How it was tested
cargo test --offline --locked --profile diag --features diagnostics -p victory-gpu --lib descriptor:: -- --test-threads=1passed all 80 selected tests.cargo check --offline --locked --features diagnostics -p victorypassed. The asset-policy check reports the same oversizedcrates/victory-shader/src/emit/lower.rsblob on upstream main and this branch.Checked for overlap
I used OpenAI Codex to help investigate, implement, and test this change.