feat(libSceVideoOut): add the PS4 device capability and ModeSetAny exports #9880
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9880"
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 ntamas94 on 2026-10-22T20:27:44Z.
What
Adds
sceVideoOutGetDeviceCapabilityInfo_andsceVideoOutModeSetAny_, which both measured PS4 titles (CUSA04865, CUSA12435) import and which the library did not export. Measured on a PS4 Pro with firmware 10.71: the capability call writes the 64-bit value 1 for size 8, answersVIDEO_OUT_ERROR_INVALID_VALUEfor any other size and for a nullinfo(aslibSceVideoOut.sprxof firmware 10.71 does), andVIDEO_OUT_ERROR_INVALID_HANDLEfor an unknown or closed handle;sceVideoOutModeSetAny_returns nothing, stores the size in the first word and fills the rest of the struct with 0xFF. What the capability bit and the filled struct mean is not documented, so both are recorded under Unknown function info indocs/dev/debt/libSceVideoOut.md. The new guest testguest_video_out_device_capabilitycovers the measured rows and skips (77) when no VideoOut port can be opened.Tested
Windows 11, NVIDIA GeForce RTX 2080 (Vulkan):
guest_video_out_device_capabilitypassed on the final head, also with the Khronos validation layer (no VUID messages); the paired main/change logs are in the PR conversation. The rows were measured on a PS4 Pro (firmware 10.71) with a homebrew probe: size 8 gives 1, sizes 0, 4 and 16 give 0x80290001, handle -1 gives 0x8029000B,sceVideoOutModeSetAny_with size 16 stores 0x00000010 followed by twelve 0xFF bytes. The same probe compiled against this branch on the host gives the same eight rows. Not run with a title.Refresh — 2026-11-03 (Codex, AI-assisted): Merged main
086c0686c8, kept main's flip-rate and implemented flip-master entries, and removed the obsolete duplicate claiming flip-master is unimplemented. Conventions and whitespace checks pass. No new runtime or Vulkan tests; earlier results above predate this merge.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)Imported from boykopovar/AnyPS5. Originally posted by harisibrar1 on 2026-10-24T12:32:06Z.
Review: COMMENTED
Checked against main
87666fc5d6and shadPS4 396c2a09a3 (src/core/libraries/videoout/video_out.cpp):kGVLc3htQE8,pjkDsgxli6c).ModeSetAny_matches shadPS4 (memset0xFF oversize, thensizein the first word), and the test registration matchesguest_video_out_resolution_status(77 /videoout_app0/ same link set). The branch still merges cleanly with main.ModeSetAny_(mode, 0)to write a zero first word, which writes 4 bytes for a 0-byte struct. Was size 0 among the PS4 probe rows? The description lists only size 16 for this call. If it wasn't measured, it may be better to drop that row or say so in the debt entry.0x80as BT2020_PQ and reports 0 without HDR, so the measured1is a different bit. It could help to note in the debt entry which display the PS4 Pro was connected to, since the value may depend on it.Reviewed with AI assistance (Claude Code); the checks above were run locally on my machine.