docs(libSceVideoOut): record what a PS5 payload process did with sceVideoOutAddBufferAttributeOption #17763
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17763"
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 xXPBSXx on 2026-11-09T14:55:44Z.
What
docs/dev/debt/libSceVideoOut.md:23(sceVideoOutAddBufferAttributeOption) says:A PS5 now answers part of that: after
sceVideoOutSetBufferAttribute2filled a buffer attribute,sceVideoOutAddBufferAttributeOptionORed 0x20, 0x8, 0x1 and0x8000000000000000unchanged into the 64-bit option at offset 24 (0x20, then 0x28, 0x29, and the high word 0x80000000), added 0 and a repeated 0x20 without a change, and changed no other byte of the 80-byte attribute, which is what AnyPS5 does (attribute->option |= option, covered byFlip.cpp). The entry now says so and keeps unmeasured what the console does with an option when a buffer is registered. Only the entry changes; no code.Tested
Measured on a PS5 with firmware 11.60 (
kernel_get_fw_version0x11600005), from a homebrew payload process (ps5-payload-sdk v0.45, elfldr), on 2026-11-09 at 12:54 UTC (the console clock was about 1 h 41 min ahead), one run with 34 cases; the cases 1 and 2 of the probe use only caller-owned memory. The return value of the call is meaningless (the function returns nothing). A title process may differ. The probe source and its complete raw output are in the first comment.tools/check_conventions.py --base upstream/mainpasses.Overlap: the 22 other open pull requests that change
docs/dev/debt/libSceVideoOut.mdwere checked on 2026-11-09 between 14:25 UTC and 14:36 UTC againstmain6b58dfa474. Four already conflict withmainwithout this change (#4040 and #14212 in that file, #12863 and #12315 in other files), and none conflicts only with this change. The other eighteen merge cleanly with and without it, among them #17696 (the Delete*Event entries of this account, on other lines of the file), #16584 and #14106.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)AI-assisted (Claude Code).
🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by gabichuuuuu on 2026-11-10T17:49:30Z.
Review: COMMENTED
Read
e2a9f00b65againstmain.Correctness.
sceVideoOutAddBufferAttributeOption(Buffer.cpp:139-144) throws on a null attribute and doesattribute->option |= option, which is what the new text says.VideoOutBufferAttribute2.optionis the first 64-bit member after six 32-bit fields (SceTypes.hpp:2295-2302), so offset 24 is right.sceVideoOutRegisterBuffers2throws for any option other than 0 and 8 (Buffer.cpp:16,VideoOutDriver.hpp:82), matching the unchanged sentence kept at the end of the entry. The old sentence on main is unchanged, so the entry is not stale. The PS5 measurement (firmware 11.60, payload process) cannot be checked from the code; the entry correctly keeps registration behaviour as unmeasured. Does not overlap #17903, which edits a different line of the same file.Not run here; this is from reading the code.
AI-assisted: yes.