fix(main): the blocker of agc_driver_pipelined_indirect_draw outlives its test #9647
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9647"
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 boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-22T06:01:12Z.
What
Main's push build 39725502001 (head
da54c652e3, #9433) failedagc_driver_pipelined_indirect_drawwith "the queue worker and the draw pipeline deadlocked". The test'sBlockerqueued a lambda capturingthis(a stack object) on the draw pipeline.Finish()of the first test can return before that lambda has run, so it ran during the second test through a dangling pointer, read areleasethat was never set and held the committer forever. #8807 (frame dump writer) is not related; the test's timing was never robust.Fix: the blocker state is shared with the lambda and each test waits for the blocker to finish; the fixed 500 ms sleeps wait for the pipeline items and for the draw's drain request instead. Test-only change.
Tested
Linux, lavapipe (CI's driver, no
/dev/udmabuf),agc_driver_pipelined_indirect_draw_tests. Reproduced with 12 processes pinned to 2 cores: before, ~17% of runs failed (stack dump of the hung run showed the committer inside the stale blocker); after, 0 hangs in 72 runs, 2 runs hit the pre-existing "drained" assertion under that starvation.ctest -R '^agc_driver_pipelined_indirect_draw$'passes unloaded.Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repository