Repository navigation
feat(libs): resolve command-buffer flip buffers when the GPU reaches the flip - #2204
Conversation
|
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
No title was run. 🤖 Addressed by Claude Code |
|
This conflicts with main after today's merges; could you rebase? It passed testing and is otherwise ready. |
…the flip A flip packet names a buffer index; the buffer was looked up when the command buffer was submitted, so a title that registers its buffers after submitting the first frame failed with "flip buffer is not registered". The buffer is now resolved when the GPU reaches the flip, as the hardware does. A flip whose buffer is still unregistered then presents black and completes (see TechnicalDebt). Uncharted: Legacy of Thieves Collection (PPSA05684) submits its first flip before registering its buffers and stopped with "flip buffer is not registered".
|
Rebased onto current Checked after the rebase: libSceVideoOut build + ctest (10/10), and |
9695f2c to
c9fe124
Compare
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(d70b899):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)