GPU: a list that binds a heap's view-address table keeps it until reset #2329
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2329
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2329"
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?
@denkencar-sketch on GitHub · 2026-11-25 10:42 UTC · original
denkencar-sketch:fix/dhost-003→main· +47 −4 · 3 files · 1 commits · openSummary
The view-address table a list binds lived and died with its heap, which the title may release while the GPU still reads the table as a root view. A list that binds it now keeps it until reset. It is also made under the made-slots lock now, so a view noted meanwhile is not lost.
Testing
Test
a_list_keeps_the_view_address_table_it_bindsfails without the keep and passes with this change. The second part, holding the lock across the publish, is not covered by a test (it is right by reading).cargo test --workspace --lockedpasses apart from known flakes:modules::dstorage::tests::a_page_list_filled_after_its_request_startsfails now and then onmaintoo, and so does a parallel-run flake invictory-gpu's lib tests (watch::anddescriptor::host::tests, 2 of 40 runs on pristinemain).This changes the same function as open PR #1906, so a small textual conflict is expected. Not tried: a run in the game.
AI-assisted.
@Marvisak on GitHub · 2026-11-25 15:22 UTC · original · edited 2026-11-26 03:25 UTC
Automated triage for the maintainers.
Verdict: merge candidate (as before the conflict). Thanks for rebasing; it merges cleanly into current
main.crates/victory-gpu/src/draw.rs: the root SRV bound for view addresses now goes throughkept_view_addresses, whichlist.keeps the table'sID3D12Resource. Onmaina list keeps the descriptor heaps it binds (draw.rsaround line 1027) but not this upload buffer, whichHostHeapowns. So a heap the title releases before the list runs could free a buffer the GPU still reads.descriptor/host.rsview_addressesnow takes themadelock beforeget_or_initand holds it until the table is published.mirrornotes addresses while holding that lock, so an address noted between the snapshot and the publish is no longer lost.Outside this PR: dynamic slots (
make_at,make_raw) callnote_addresswithout themadelock, and their entries aren't in the snapshot. That is the same as onmain.CI: passing (
check).Generated by Claude Code
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.