feat(libSceVideoOut): answer the mode helpers as firmware 13.42 does #14954
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/14954"
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 BunnyFl on 2026-11-02T04:20:02Z.
What
Five more libSceVideoOut mode helpers threw. They now read or fill the mode structure as firmware 13.42's libSceVideoOut does. They sit next to
sceVideoOutSysModeIsVrfrom #14941 and read the same dword at offset 0x20, so this builds on that PR:sceVideoOutSysInitMode(void* mode)(9cmjhjqa7Sg) fills bytes 0 to 0x1F with 0xFF, then stores 0x20 in the first dword. It writes nothing past 0x20 bytes and leaves EAX unset, so it is declaredvoid.sceVideoOutSysModeIsSystemDefault(const void* mode)(5Y8uUbGMio0): 1 when bit 0 of the dword at 0x20 is clear.sceVideoOutSysModeIsVrNative(const void* mode)(SgA2MtojPto): 1 when bits 2:1 of that dword are01.sceVideoOutSysModeIsVrLegacy(const void* mode)(zecl8Gox+P0): 1 when bits 1 and 2 are both set.sceVideoOutSysModeIsHdr(const void* mode)(I7-lGGvFgBM): 1 when byte 6 is from 12 to 17. The module computes(uint8_t)(byte - 12) < 6, and the code does the same instd::uint8_t.sceVideoOutSysModeIsVrnow shares the dword read with these. Its behaviour is unchanged.None of the five checks its pointer, so a null argument faults on the console as it does here. What the fields mean is unknown, and the new debt entry says so.
Source
Firmware 13.42
libSceVideoOut.sprx, sha256975b229324655a2d2a945c755fc0339e7feecb62863efc28ad3b2d91a95ad215. Each function was read to its return, from disassembly only, not measured on a console. All five are leaves: no calls, no global data.Tested
Windows 11, WinLibs GCC 15.2.0 r7, Release, on #14941's head
072371afe9(main93dbd0f82a):guest_video_out_firmware_answerspasses. It checks:IsHdr;InitModewrites exactly 0x20 bytes over a 0x5A-filled buffer.IsVrLegacyaccepting either bit;IsVrNativecomparing with 4;IsSystemDefaultinverted;IsHdrwith<= 6;InitModefilling 0x24 bytes.InventoryExports.cpp/.hpp, the test doesn't compile, because these exports still have the placeholder no-argumentintsignatures there.public_headers(65 tests) passes.93dbd0f82a:ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest -Vforvideo_out_flip_controls,_cpuflip,_eop,_fresh,_deferred,_backtobackandvideo_out_output_mode_policy;VUID-or aSYNC-HAZARDID.python3 tools/check_conventions.py --base upstream/main: all checks pass.python3 tools/pr_overlap.py --branch feat/videoout-fw1342-sysmode: no confirmed overlap. It could not compare #4040, #5021, #6977, #9432, #9880, #10112, #12863 and #14212, which conflict with main and shareCMakeLists.txtor the debt file. None of their changed lines names these five exports or their NIDs.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)🤖 Generated with Claude Code