Run a queue's held work before testing its next wait in the checkpoint #7
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/paveledits--ScarlettMac!7
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/7/head"
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?
@Kolkka on GitHub · 2026-11-26 21:24 UTC · original
Kolkka:runtime/queue-wait-order→main· +47 −2 · 4 files · 1 commits · merged 2026-11-27 00:41 UTCChanges
Adds checkpoint patch
0006-queue-wait-order.patch, imported from pragyaangaur/VIctory-macOS#434 (also proposed to Marvisak/VIctory#3381).The queue pump gathers a queue's ready segments into one piece and runs the piece only when it reaches a segment that cannot run yet. A segment with memory waits was therefore tested against title memory before the segments ahead of it in the same queue had run. Its wait could pass on a value one of those segments overwrites with its bottom-of-pipe write, or hold on one it writes. The patch runs the gathered piece first, as the pump already does before a signal, and adds a regression test.
This is the
Prestreamstall that #6 lists as the next problem. In GTA VI's Series S intro, the title stopped submitting work about two minutes intofbk_stry000_FBK_STRY000_INTRO_min. The render thread sat in an infinite wait in the function that reports "Unsignaled CrossQueueBarrier". About 28 s later the title's hang checker ended the run (+0x23cf683in older builds,+0x2215c35here). With the patch, the same run went past that point into the world and the opening cinematic.The patch is numbered 0006 so it does not collide with #6's 0005. It applies with or without 0005.
runtime-preview/SOURCE-NOTICES.mdcredits the upstream PR, andruntime-preview/BUILD.mddescribes the change.Verification
./build.sh --checkpoint --prepare NEW_SOURCE_DIRapplies 0001–0004 and 0006 onto c84e42a. Applying it on top of 0001–0005 from #6 also succeeds.WINEDLLOVERRIDES="d3d12,d3d12core,dxgi=b" tools/macos/test-wine.sh -p victory-gpu --lib: 330 passed, 0 failed, 10 ignored. All 11holdtests pass, including the newa_wait_reads_what_earlier_segments_of_its_queue_wrote.Prestream. The run reached the world and the opening cinematic. Runs now end after about nine minutes on GPU memory, which is a separate problem.