GPU: wait for in-flight writes from aliased copies, read-backs and late writes (#89) #191
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from fxceless/victory-fork. Originally posted by gdawid9407 on 2026-11-24T22:22:03Z.
Problem
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.Imported from fxceless/victory-fork. Originally posted by Pin0d1 on 2026-11-25T04:12:47Z.
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
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.