feat(libSceVideoOut): answer seven inventory calls as firmware 13.42 does #14941
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/14941"
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-02T02:44:11Z.
What
Seven throwing inventory exports in
libSceVideoOut/InventoryExports.cppnow return what firmware 13.42's libSceVideoOut returns:sceVideoOutAddBufferHdrPrivilegeVAlir52gpQIsceVideoOutRazorRecallCallbackshGcTks-qqIUsceVideoOutSysUpdateRenderingMode4G37EIMMD+QsceVideoOutCurveSamplePointsCalc_kazBRXPqR7csceVideoOutDriverGetLatestEopHandleGL8+3RHW5vksceVideoOutSysGetMonitorInfo_vMLWuJckGv0sceVideoOutSysModeIsVrQEiuHxjungcEach export is a defined entry in the module's dynamic symbol table, and each body is a single path with no calls, syscalls or globals. Read to the return, disassembly only, not measured on a console.
sceVideoOutSysModeIsVrgains aconst void*parameter, since the code reads throughrdi. The other parameter lists stay as they were, because the code reads no arguments.The seven rows leave the inventory table in
docs/dev/debt/libSceVideoOut.md, and a new entry records what stays unverified (parameter lists, and the layout of the structuresceVideoOutSysModeIsVrreads apart from that dword).sceVideoOutDebugAddVrrPrivilege, which sets a module flag, is left throwing. The debt entry also records thatsceVideoOutSysModeIsVrdoes not check its pointer.Source: firmware 13.42
libSceVideoOut.sprx(sha256975b229324655a2d2a945c755fc0339e7feecb62863efc28ad3b2d91a95ad215). Each NID is a defined entry at the address shown, and these are the complete bodies, each a single path:The six constant returns read no argument register and write no memory.
sceVideoOutSysModeIsVrhas no check or branch before the load:bextrwith control 0x101 (start 1, length 1) extracts bit 1 of the 32-bit value atrdi+0x20. A null argument therefore faults in the module as well.Tested
Windows 11, WinLibs GCC 15.2.0 r7, Release, on upstream/main
93dbd0f82a:guest_video_out_firmware_answerspasses. It checks each return value, and forsceVideoOutSysModeIsVrbit 1 set and clear, with every other bit and every byte outside the dword at 0x20 set.InventoryExports.cppandInventoryExports.hppaborts withsceVideoOutAddBufferHdrPrivilege not implemented.public_headerspasses.python3 tools/check_conventions.py --base upstream/main: all checks pass.python3 tools/pr_overlap.py --branch feat/videoout-fw1342-constants: 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 diffs names these seven exports or their NIDs.93dbd0f82a: AMD Radeon RX 9070 XT (driver 32.0.32015.7029), Vulkan SDK 1.4.363 validation layer,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: 7/7 pass on both, none skipped. Neither log has the missing-layer message, aVUID-or aSYNC-HAZARDID.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