Ghost of Yōtei 02.002.000: missing sceVideoOutGetOutputStatusWithVrr (gWT7X8H0bYs), console measurements needed #2746
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 rohankmr414 on 2026-10-10T12:41:07Z.
Environment
197ffac9PPSA26344, content version02.002.000Observed behavior
After reconstructing a clean ELF from the title's unencrypted SELF and relinking successfully, launch fails before a window appears:
The import registry associates this NID with
libSceVideoOut.prx. Computing the NID ofsceVideoOutGetOutputStatusWithVrrusingtools/nid_names.pyproduces exactlygWT7X8H0bYs.A local diagnostic change adds this named export and immediately calls
NotImplemented_nid_no_patch(__func__). With that change, the title initializes the RTX 5070, creates a swapchain/window, detects a PS5 controller, and then terminates with:This confirms the title calls the function during startup. The local change does not implement the query or return fabricated status data.
Call-site evidence
Three calls in the original executable, at virtual addresses
0xDDE5FB,0xDDF8F9, and0xDE05D3, pass a VideoOut handle inediand an output pointer inrsi. No additional arguments are established.The callers subsequently read:
42, consistent with dynamic range160x10gates a branch using additional fields, consistent with VRR availability48,50,5248,60, and120These observations establish some accessed fields, not the complete structure or their exact meanings. The current
VideoOutOutputStatusis 48 bytes, so treating this as an alias ofsceVideoOutGetOutputStatuswould leave the additional fields undefined.Request
Does anyone have an independently documented definition or console measurements for this API?
Useful evidence would include:
I do not have a PS5 available for measurements. I can help prepare a homebrew probe for a willing tester and implement the query once there is sufficient evidence. AnyPS5's contribution rules require exact behavior or an explicit exception; guessing the output layout would not meet that requirement.
The investigation and local diagnostic change were made with AI assistance.
Imported from boykopovar/AnyPS5. Originally posted by boykopovar on 2026-10-10T13:32:48Z.
To comply with clean room requirements, I will answer the question in text.
On success, the function writes 80 bytes:
If the 16-bit value at offset 52 is 60, refreshRate is set to 3. If it is 120, refreshRate is set to 13. Other values leave the refreshRate obtained from the internal query unchanged.
Validation order and return codes:
The output buffer remains unchanged on the listed error paths. Pointer validation is confirmed only for nullptr; behavior for other inaccessible addresses has not been established.
80 bytes is the write size.
Imported from boykopovar/AnyPS5. Originally posted by boykopovar on 2026-10-10T13:38:37Z.
Additional detail on refreshRate before the offset-52 adjustment:
59.94 Hz: 3
60.00 Hz: 9
119.88 Hz: 13
120.00 Hz: 14
Therefore, refreshRate is not determined by the nominal 60/120 Hz mode alone. The 16-bit value at offset 52 can override these initial values as described above.
Imported from boykopovar/AnyPS5. Originally posted by ThatsLeo on 2026-10-10T17:45:55Z.
Fix:
ThatsLeo/AnyPS5:feat/videoout-output-status-vrr(one commit,e893efad, onmain57f96fd2), following the description above.sceVideoOutGetOutputStatusfields in bytes 0-47 (the two share one helper), then zeros. Bytes 48-53 come from an internal query whose fields are not established, so they are written as zero and the value at byte 52 never adjustsrefreshRate; the title reads them only when bit0x10offlagsis set, which AnyPS5 does not report.statusreturns0x80290002and an unknown or closed handle0x8029000B, leaving the buffer unchanged. The global-flag (0x8029001C) and object-field (0x8029001B) checks test states AnyPS5 does not model. Both points are recorded in TechnicalDebt in place of the current entry.guest_video_out_resolution_statuschecks the 80 bytes againstsceVideoOutGetOutputStatus, that bytes past 80 are untouched, and the error codes.Tested on Fedora 44, GCC 16.2.1, Release, Intel Arc (Meteor Lake, Mesa 26.2.3): the test passes 3/3 with a display (
ANYPS5_REQUIRE_DISPLAY=1); fullctesthas no new failure on Intel Arc or lavapipe. I don't have PPSA26344, so it is untested with the title. @rohankmr414, you offered to implement this once the layout was known: feel free to compare it with your own work or carry it.AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-11T05:06:36Z.
@rohankmr414 could you run PPSA26344 with ThatsLeo's
e893efadand post the next stop? It follows the layout above and is untested with the title.Imported from boykopovar/AnyPS5. Originally posted by rohankmr414 on 2026-10-11T05:18:38Z.
@oneandonlydean @ThatsLeo I tested
e893efadwith Ghost of YōteiPPSA26344, version02.002.000, on Fedora 44, Ryzen 7 7800X3D / RTX 5070, GCC Release build.Direct result with the VideoOut change
With
e893efadon base57f96fd2, the title gets past the missingsceVideoOutGetOutputStatusWithVrrimport and call, initializes Vulkan and the controller, then stops with:This matches #1920, which has since been closed following #1940. It confirms startup progress with this title; it does not independently validate console output bytes or VRR behavior.
Subsequent experiments
I then carried these additional commits locally, in order:
d6f50928(scalar-source decoding, #1940),b359a183(retained shader headers, #2856),01d975a3(runtime image/sampler tables, #757),532f3d02(64-bit-pointer image tables, #758), and0d8b6970(unnormalized sampler offsets, #822). These observations are from that branch plus uncommitted changes, not current main or the VideoOut change alone.The later run stopped with a missing prepared fragment-shader artifact at
0x8001854600, stage5, wave64, push offset/capacity128/128, with no prepared layouts. A registration trace showed two fragment interpolators (CX[0x1b6] = 2). The relevant registration path returned no artifact without marking preparation deferred. A local candidate marks it deferred so preparation can use the actual draw request, retaining the existing ABI checks.With that candidate and a separate local internal-resolution experiment (1920×1080 internal targets, original 3840×2160 display setup), the run rendered the Sony logo and reached 1,698 presentations without a recorded fatal error in the captured snapshot. The earlier missing-artifact stop had occurred after roughly 600 presentations. Observed logo/loading performance was around 8–9 FPS; gameplay has not been reached or verified.
GPU profiling identifies compute shader
0x800038be00as a major cost: approximately 205 ms per dispatch in the optimized 4K run, versus 53.6 ms median window mean across 22 eligible timing windows in the internal-1080p experiment. The dispatch changed from 240×135 to 120×68 workgroups. These are separate startup runs with profiling enabled, not a controlled gameplay benchmark or an isolated VideoOut performance comparison.The runtime builds succeeded. No unit tests were run locally. Investigation and local changes were AI-assisted.
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T07:30:53Z.
@oneandonlydean PRAGMATA (PPSA02530) on Windows with ThatsLeo's
feat/videoout-output-status-vrr(e893efad) merged into a local test branch (currentmain06da1176plus my other fix branches; only conflicts were in a test include and TechnicalDebt, resolved by keeping both): the import audit is clean (0 absent), the title no longer stops onsceVideoOutGetOutputStatusWithVrr, and in a 100 s run it goes on to the next stop:sceConvertKeycodeGetCharacteris declared inlibSceConvertKeycodewithout parameters; its signature is unknown to me. I did not look at what the title does with the VRR result, only that it passes the call. For reference, before this branch the same build stopped on the VRR call; with a zeroed 0x48-byte buffer substituted locally (not proposed) it also reachedsceConvertKeycodeGetCharacter, so the two agree on the next stop.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T04:30:43Z.
Closing: fixed on main by #3972 (sceVideoOutGetOutputStatusWithVrr is implemented). If it still happens on current main, comment here with the title ID and the log line.