Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from fxceless/victory-fork. Originally posted by AscilCH on 2026-11-24T22:33:51Z.
Problem
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
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.