feat(videoout): expose buffer labels and release replaced frames #5592
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5592"
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 JJenkx on 2026-10-14T00:33:21Z.
What
Implement
sceVideoOutGetBufferLabelAddresswith a port-owned array of 16 aligned 64-bit labels. Return its address and count, reset newly registered slots, and release the previous displayed buffer's label when its replacement completes presentation. Black/blank replacements release the previous buffer without using a negative index. Ports and reopened generations have separate arrays.Route stores through a graphics-driver helper retained by production NID patching, so the memory tracker observes an atomic release store. Failed handle/pointer queries preserve output, and successful pointer output supports unaligned storage.
Astro Bot PPSA21564's bundled driver uses a pointer output and
base + index * 8. Count and release behavior follow shadPS4 and its driver. PS5 timing, error policy, repeated same-buffer flips and concurrent guest stores remain unverified and documented in library debt. This does not implement EOP-flip tokens, which are separate work in #5539.Tested
d1de55fb3306, containing maind1670009fbfd: Linux 1,037 passed / 48 skipped; Windows 714 passed / 391 skipped. Display-dependent label cases are skipped on these runners and remain outside CI's functional validation.feddf7f4c654; the full CI above remains tied to its recorded earlier source/base. Conventions and whitespace checks pass.Checklist
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-14T00:34:06Z.
Progress report (
ce5c839→d1de55f)📈 System libraries: 88.19% (+0.01%, +1 implemented functions)
✅ 1 implemented
sceVideoOutGetBufferLabelAddressImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-14T12:32:05Z.
Checked the label array against shadPS4 and fpPS4 (null output, invalid handle, count 16), the registration reset and the release of the previous buffer on replacement/black/blank flips. Built and ran
video_out_flip_labelsandvideo_out_flip_labels_mainon a real X display (both pass; they skip under the offscreen CI driver). Removing the release inprocessFlipmakes the test fail, restoring it passes. Merging once the full Build is green.