GPU: wait for in-flight writes from aliased copies, read-backs and late writes (#89) #191
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!191
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-191"
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?
@gdawid9407 on GitHub · 2026-11-24 22:22 UTC · original
gdawid9407:fix/relay-exact-aliased-reads→main· +198 −27 · 1 files · 1 commits · openProblem
Under
VICTORY_RELAY=2(relay_exact),submitonly waits onWHY_READuntilblocked_byclears for the current submission's CPU-side reads:blocked_byignoredStep::Refresh(shadow, address, len). Refreshing the sameShadowthat declared an in-flightGpuWriteneeds no wait (its GPU buffer receives the write in queue order andShadow::updateskipspending), but refreshing a differentShadowcovering overlapping title addresses (e.g. a 4 MiB loose window vs an 8 MiB window, or a sub-buffer vs an enclosing heap buffer) reads title CPU memory before the writing flight's copy-back has landed — matching the missing skinned meshes and overlapping subtitle vertices reported withVICTORY_RELAY=2in #89.read_backs(deferred().backs) andLate::Writeitems (in_hand/line) were not checked byblocked_by(while keepingLate::Writeout ofline.writtensolate_metstill evaluates knownWritten::Valuewrites without unnecessary settles).Changes
by_copy, keyed byShadowpointer or0for texture read-backs) alongsidewritten, plusLine::immed_writesfor pending/landingLate::Writeranges.Step::Refreshinblocked_byiff the refreshed range overlaps an in-flight write from a differentShadowcopy, a texture read-back, or aLate::Write(counted inLATE_STATSasanother copy).relay_tests::refreshes_wait_only_for_writes_from_another_copy_or_readback.@Pin0d1 on GitHub · 2026-11-25 04:12 UTC · original
I checked two ordering cases on
1582757.The replay cases are
pr191andpr191-physical. I included separate candidate patches for the last covering store and for comparing exact byte ranges through the mapping index in #555. Probes and transcripts · Patches and prerequisitesPrepared with the help of Codex 6.2 Astra Max.
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.