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!206
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-206"
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-24 22:33 UTC · original
AscilCH:fix/shadow-uncopied-pages-under-writes→main· +64 −22 · 1 files · 1 commits · openProblem
Related to #168 (
VICTORY_LATE_WAIT=3/VICTORY_RELAY=2missing geometry) and #89 (VICTORY_RELAY=2artifacts). Complementary to #191 (which only toucheshost.rs).In
crates/victory-gpu/src/shadow.rs:Shadow::copy_stale(default synchronous path) scans every page in[from, to)and copies any page wherecopied[page - base] == 0 || write > copied[page - base].Shadow::stale_under_writesandShadow::merge_under_writes(used underVICTORY_LATE_WAITandVICTORY_RELAY) only iterated the write-watch deltawritten. Any page inside an in-flightGpuWriterange that had never been copied yet (copied == 0) and did not appear inwrittenwas silently skipped, leaving those bytes zeroed in the host copy whileShadow::updatealso skipped the pending range.Fix
stale_pages_in(base, copied, a, e, written)incrates/victory-gpu/src/shadow.rsto scan every page ina / PAGE..=(e - 1) / PAGEand return pages withcopied == 0 || write > copied, matchingcopy_stale.stale_pages_inin bothShadow::stale_under_writesandShadow::merge_under_writes.shadow::relay_tests::stale_pages_include_uncopied_pages_absent_from_write_watch.Verification
rustfmt --edition 2024 --check crates/victory-gpu/src/shadow.rs(changed hunks): cleancargo test -p victory-gpu --locked -- --test-threads=1: 111 passed, 0 failedcargo xtask policy: 169 files okcargo clippy -p victory-gpu --all-targets --locked -- -D warnings: cleancargo clippy -p victory-gpu --all-targets --all-features --locked -- -D warnings: clean(AI-assisted; synthetic unit test only, no game data.)
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.