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!207
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-207"
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/relay-host-read-and-run-precedence→main· +93 −31 · 2 files · 1 commits · openProblem
Related to #168 and #89; orthogonal to #191 (which covers aliased
Step::Refresh, textureread_backs, andLate::Write).Two remaining gaps in
blocked_byunderVICTORY_LATE_WAITandVICTORY_RELAY=2:expand_rectsCPU title-memory reads invisible toblocked_by(crates/victory-gpu/src/draw.rs,crates/victory-gpu/src/host.rs):expand_rectsreads title vertex memory[from, from + n * 3 * stride)on the CPU at submission, but scheduled the closure withdefer_host(Step::Host), whichblocked_byignores.VICTORY_LATE_WAIT/VICTORY_RELAY=2could expand the stale title-memory bytes before copy-back landed.WHY_READshort-circuiting ahead ofStep::Run(crates/victory-gpu/src/host.rs):blocked_byreturnedSome(WHY_READ)on the first matching read step without scanning the remaining steps inrunsforStep::Run(_).VICTORY_RELAY=2,why == WHY_READtakes the selectiverelay_waitpath (waiting only untilline.writtenclears) instead ofself.settle(..., WHY_RUN)(which settles all flights, including flights without shader writes, ahead of aStep::Run).Fix
Step::HostRead(usize, usize, Box<dyn Fn() + Send>)andHostList::defer_host_readincrates/victory-gpu/src/host.rs.expand_rectsincrates/victory-gpu/src/draw.rsfromdefer_hosttodefer_host_read(from as *const u8, n * 3 * stride, ...).blocked_by/blocked_by_stepsto checkStep::HostReadagainstwrittenand continue scanning forStep::Run(_)soWHY_RUNtakes precedence overWHY_READ(without double-countingLATE_STATS).host::relay_tests::blocked_by_steps_checks_host_read_and_prioritizes_run.Verification
cargo 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.