fix(videoout): accept a buffer attribute change while a flip is pending #3867
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3867"
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 tv7 on 2026-10-11T18:16:22Z.
What
sceVideoOutSubmitChangeBufferAttribute2threwVideoOut: buffer attributes are in use by a pending flipwhen any buffer of the group had a flip queued. Marvel's Wolverine (PPSA03671) makes this call with flips in the queue, at the end of its intro videos, so it stopped there.The flip read its buffer group late, in
resolveFlipBufferwhen the GPU reached the flip, so a change at that point would have reached flips submitted before it. The throw kept that from happening. Now:Reserve(submission order, under the config mutex) copies the buffer's group into the request.resolveFlipBufferuses that copy, and readscfg.groupsonly for a request reserved without one.Tested
Windows 11, RTX 3070, GCC 15.2.0 UCRT, Release, on main
a11c8f7f7.video_out_flip_lifetime(and_reopen): with a flip held pending behind a gated GPU flip, the attribute change now returns 0, the group holds the new attributes, and the flip stays pending. An invalid change (DCC without metadata) still throws. Before this change the test fails withbuffer attributes are in use by a pending flip. These tests skip under the defaultSDL_VIDEODRIVER=offscreenon this machine (no Vulkan there), so I ran the fivevideo_out_flip_*tests withSDL_VIDEODRIVER=windows, a local CMake edit that is not in the PR (#3810 makes this configurable): 5/5 pass.guest_kernel_sys,windows_exceptions,guest_filesystem,agc_driver_emulated_color_compare) fail the same way on main on this machine.tools/check_conventions.pypasses.sceAjmBatchJobInitializeOpus sample rate (separate topic).libSceVideoOutBuffer.cpp,VideoOutDriver.cpporFlip.cpp(#3817, #3818, #3664, #1050).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🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-11T18:25:21Z.
I independently built
video_out_flip_testsfrom head5cd25dedbd2e673d210b6567a078b5f6f7590d28in Release with GCC 12.2.0 on Linux. The default CTest invocations skipped underSDL_VIDEODRIVER=offscreenbecause that driver did not provide Vulkan here. Running the test binary withxvfb-run -a env SDL_VIDEODRIVER=x11used Mesa llvmpipe (LLVM 15.0.6); both the default lifetime case and thereopencase passed (VideoOut flip tests passed). This is local software Vulkan validation, not a Windows or physical-GPU run.