GPU/host: stop CardInflight::brought from pinning Arc<Shadow> buffers after fallback fetches #804
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from fxceless/victory-fork. Originally posted by AscilCH on 2026-11-25T08:19:19Z.
Summary
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.)
Imported from fxceless/victory-fork. Originally posted by MamaLeVrai on 2026-11-25T09:54:07Z.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.