feat(libs): resolve command-buffer flip buffers when the GPU reaches the flip #2204
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2204"
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 XairRrR on 2026-10-09T11:29:50Z.
What
Uncharted: Legacy of Thieves Collection (PPSA05684) stops on
mainwith:Its renderer submits a DCB flip of buffer 0 while another thread waits for
sceVideoOutIsFlipPendingto reach 0 before registering the buffers. The buffer was looked up when the command buffer was submitted; it is now resolved inFlipRequest::GpuReady, when the GPU reaches the flip. A flip whose buffer is still unregistered then presents black and completes (flip event, count,flipPendingNum). The console's behaviour in that case is unknown and recorded in TechnicalDebt.Tested
Arch Linux, GCC 16.2.1, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.71.09).
main(d70b8998):tools/check_conventions.pypasses; of the 513 ctest tests all pass exceptagc_driver_dcc_keys_first_write, which fails the same way onmain(an unchanged pending image was uploaded again).agc_driver_storage_cache_budgetpasses run alone; underctest -j8a local 3 GB RSS limit stopped it.video_out_flip_testsmodesdeferredandunregisteredpass, run by hand (the binary is not registered in ctest).Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by popcoder565 on 2026-10-09T15:24:48Z.
Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), RTX 3060 Laptop (NVIDIA 616.92), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head
9695f2c8, merged ontomaind70b8998in one build with 33 other AGC/shader PRs that had no Windows run.video_out_flip_tests, which isn't in ctest. Onmainit aborts on Windows with an uncaughtVideoOut: port is closed(#1040, which #1225 addresses), so I couldn't check this PR's test here.PATHsetup.No title was run.
🤖 Addressed by Claude Code
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-10T01:36:28Z.
This conflicts with main after today's merges; could you rebase? It passed testing and is otherwise ready.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-10T07:56:56Z.
Rebased onto current
mainas @oneandonlydean asked (conflicts inVideoOutDriver.cppwith the overlay-bus/CheckAlivechanges, the mode list intests/Flip.cpp, and a TechnicalDebt adjacency). The PR's logic is unchanged.Checked after the rebase: libSceVideoOut build + ctest (10/10), and
video_out_flip_testsmodesdeferred,unregisteredandoverlayrun by hand pass. Without thesrcchange,deferredandunregisteredfail withVideoOut: flip buffer is not registered. Windows result from @popcoder565 above. Merging on green CI.