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