GPU/host: stop CardInflight::brought from pinning Arc<Shadow> buffers after fallback fetches #805
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!805
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-805"
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?
@AscilCH on GitHub · 2026-11-25 08:19 UTC · original
AscilCH:fix/gpu-host-card-inflight-brought-leak→main· +28 −1 · 1 files · 1 commits · openSummary
Fix two
CardInflight::broughtretention bugs introduced in9376fd6(crates/victory-gpu/src/host.rs):Skip recording stale
broughtentries when no later flight is in the air.Host::relay_card_back(),inflight_tickets_landed(plans)prunedinflight.broughtbefore the fallback fetch ran, after which every fetched piece was unconditionally appended with(shadow.clone(), lo, hi, after - 1)wheneverafter > 1—even whenafter - 1 <= max(plan.sent_as)so no later flight could ever matchb.3 >= sent_as.inflight.brought.extend(...)withshould_record_brought(after, landed)(after > 1 && landed.is_none_or(|last| after - 1 > last)).Clear
inflight.broughtinHost::card_done()when all plans have landed.work.out == 0(or!relay()), resetinflight.brought.clear()alongsidework.taken = 0so noArc<Shadow>card/staging buffers remain pinned after all in-flight plans finish.Verification
cargo test -p victory-gpu --locked -- host::batch:5 passed; 0 failed; 1 ignored(benchmark), including newshould_record_brought_only_when_later_flights_exist.cargo clippy -p victory-gpu --all-targets --all-features --locked: 0 warnings incrates/victory-gpu/src/host.rs(only pre-existing9376fd6warnings indraw.rsandindirect.rs).cargo xtask policy:171 files ok.(AI-assisted; synthetic unit tests only, no game data.)
@MamaLeVrai on GitHub · 2026-11-25 09:54 UTC · original
Test report on real hardware: AMD RX 6950 XT (RDNA2), Windows 11, Rust 1.98.1, with a GPU present. I merged this PR's head
6bf3929intomain9376fd6in a throwaway tree (no conflict).cargo clippy --workspace --all-targets --locked -- -D warningsfails, with the same two errors asmainitself on this machine (function placed_filler_twins is never used,field depth_written is never read,victory-gpu): this PR adds none and removes none.cargo test --workspace --locked: 541 passed, 0 failed, 10 ignored, two runs (mainalone: 540 passed). The title was not run, so this says nothing about in-game effect. No game data.AI-assisted (Claude Code); no game data.
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.