Ghost of Yōtei 02.002.000: missing sceVideoOutGetOutputStatusWithVrr (gWT7X8H0bYs), console measurements needed #2746

Closed
opened 2026-10-10 12:41:07 +00:00 by rohankmr414 · 7 comments
rohankmr414 commented 2026-10-10 12:41:07 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by rohankmr414 on 2026-10-10T12:41:07Z.


Environment

  • AnyPS5 main: 197ffac9
  • Fedora 44, GCC Release build
  • NVIDIA RTX 5070
  • AMD Ryzen 7 7800X3D
  • Ghost of Yōtei: PPSA26344, content version 02.002.000

Observed behavior

After reconstructing a clean ELF from the title's unencrypted SELF and relinking successfully, launch fails before a window appears:

./game.elf: symbol lookup error: ./game.elf: undefined symbol: gWT7X8H0bYs

The import registry associates this NID with libSceVideoOut.prx. Computing the NID of sceVideoOutGetOutputStatusWithVrr using tools/nid_names.py produces exactly gWT7X8H0bYs.

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:

what(): sceVideoOutGetOutputStatusWithVrr not implemented

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, and 0xDE05D3, pass a VideoOut handle in edi and an output pointer in rsi. No additional arguments are established.

The callers subsequently read:

Output offset Observed use
4 32-bit value compared with 2, consistent with dynamic range
16 Bit 0x10 gates a branch using additional fields, consistent with VRR availability
48, 50, 52 Low 16-bit values compared with combinations of 48, 60, and 120

These observations establish some accessed fields, not the complete structure or their exact meanings. The current VideoOutOutputStatus is 48 bytes, so treating this as an alias of sceVideoOutGetOutputStatus would leave the additional fields undefined.

Request

Does anyone have an independently documented definition or console measurements for this API?

Useful evidence would include:

  • The complete output structure size, field offsets/types, and reserved fields.
  • Return codes and output bytes with VRR disabled/enabled, 60/120 Hz, and SDR/HDR, where supported.
  • Firmware version, display capabilities, and settings for each measurement.
  • Invalid-handle and null-output-pointer behavior, including whether failures modify the output buffer.

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.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5791300410 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2746). Originally posted by [rohankmr414](https://github.com/rohankmr414) on 2026-10-10T12:41:07Z. --- ## Environment - AnyPS5 main: `197ffac9` - Fedora 44, GCC Release build - NVIDIA RTX 5070 - AMD Ryzen 7 7800X3D - Ghost of Yōtei: `PPSA26344`, content version `02.002.000` ## Observed behavior After reconstructing a clean ELF from the title's unencrypted SELF and relinking successfully, launch fails before a window appears: ```text ./game.elf: symbol lookup error: ./game.elf: undefined symbol: gWT7X8H0bYs ``` The import registry associates this NID with `libSceVideoOut.prx`. Computing the NID of `sceVideoOutGetOutputStatusWithVrr` using `tools/nid_names.py` produces exactly `gWT7X8H0bYs`. 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: ```text what(): sceVideoOutGetOutputStatusWithVrr not implemented ``` 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`, and `0xDE05D3`, pass a VideoOut handle in `edi` and an output pointer in `rsi`. No additional arguments are established. The callers subsequently read: | Output offset | Observed use | | --- | --- | | `4` | 32-bit value compared with `2`, consistent with dynamic range | | `16` | Bit `0x10` gates a branch using additional fields, consistent with VRR availability | | `48`, `50`, `52` | Low 16-bit values compared with combinations of `48`, `60`, and `120` | These observations establish some accessed fields, not the complete structure or their exact meanings. The current `VideoOutOutputStatus` is 48 bytes, so treating this as an alias of `sceVideoOutGetOutputStatus` would leave the additional fields undefined. ## Request Does anyone have an independently documented definition or console measurements for this API? Useful evidence would include: - The complete output structure size, field offsets/types, and reserved fields. - Return codes and output bytes with VRR disabled/enabled, 60/120 Hz, and SDR/HDR, where supported. - Firmware version, display capabilities, and settings for each measurement. - Invalid-handle and null-output-pointer behavior, including whether failures modify the output buffer. 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.
boykopovar commented 2026-10-10 13:32:48 +00:00 (Migrated from github.com)
Author
Contributor

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.

int sceVideoOutGetOutputStatusWithVrr(int handle, void* status);

On success, the function writes 80 bytes:

Offset, bytes Size, bytes Contents
0 4 resolution
4 4 dynamicRange
8 8 refreshRate
16 8 flags
24 24 Zeros
48 4 Copied from the internal query result. Its subdivision into individual fields and their meanings have not been established
52 2 Copied from the internal query result and used to adjust refreshRate
54 26 Zeros

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:

  1. If an internal global flag is not 1, the function returns 0x8029001C. This check precedes argument validation.
  2. If status is nullptr, it returns 0x80290002.
  3. If the handle lookup fails, it returns 0x8029000B.
  4. If the internal 32-bit object field at offset 0x6B8 is nonzero, it returns 0x8029001B.
  5. A negative result from the internal query is returned to the caller.
  6. On success, it returns 0.

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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6098028238 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2746#issuecomment-6098028238). Originally posted by [boykopovar](https://github.com/boykopovar) on 2026-10-10T13:32:48Z. --- To comply with clean room requirements, I will answer the question in text. ```c++ int sceVideoOutGetOutputStatusWithVrr(int handle, void* status); ``` On success, the function writes 80 bytes: | Offset, bytes | Size, bytes | Contents | |---|---|---| | 0 | 4 | resolution | | 4 | 4 | dynamicRange | | 8 | 8 | refreshRate | | 16 | 8 | flags | | 24 | 24 | Zeros | | 48 | 4 | Copied from the internal query result. Its subdivision into individual fields and their meanings have not been established | | 52 | 2 | Copied from the internal query result and used to adjust refreshRate | | 54 | 26 | Zeros | 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: 1. If an internal global flag is not 1, the function returns 0x8029001C. This check precedes argument validation. 2. If status is nullptr, it returns 0x80290002. 3. If the handle lookup fails, it returns 0x8029000B. 4. If the internal 32-bit object field at offset 0x6B8 is nonzero, it returns 0x8029001B. 5. A negative result from the internal query is returned to the caller. 6. On success, it returns 0. 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.
boykopovar commented 2026-10-10 13:38:37 +00:00 (Migrated from github.com)
Author
Contributor

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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6098075175 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2746#issuecomment-6098075175). Originally posted by [boykopovar](https://github.com/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.
ThatsLeo commented 2026-10-10 17:45:55 +00:00 (Migrated from github.com)
Author
Contributor

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, on main 57f96fd2), following the description above.

  • Writes 80 bytes: the sceVideoOutGetOutputStatus fields 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 adjusts refreshRate; the title reads them only when bit 0x10 of flags is set, which AnyPS5 does not report.
  • A null status returns 0x80290002 and an unknown or closed handle 0x8029000B, 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_status checks the 80 bytes against sceVideoOutGetOutputStatus, 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); full ctest has 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6100408324 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2746#issuecomment-6100408324). Originally posted by [ThatsLeo](https://github.com/ThatsLeo) on 2026-10-10T17:45:55Z. --- **Fix:** [`ThatsLeo/AnyPS5:feat/videoout-output-status-vrr`](https://github.com/ThatsLeo/AnyPS5/tree/feat/videoout-output-status-vrr) (one commit, `e893efad`, on `main` `57f96fd2`), following the description above. - Writes 80 bytes: the `sceVideoOutGetOutputStatus` fields 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 adjusts `refreshRate`; the title reads them only when bit `0x10` of `flags` is set, which AnyPS5 does not report. - A null `status` returns `0x80290002` and an unknown or closed handle `0x8029000B`, 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_status` checks the 80 bytes against `sceVideoOutGetOutputStatus`, 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`); full `ctest` has 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.
oneandonlydean commented 2026-10-11 05:06:36 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-11T05:06:36Z.


@rohankmr414 could you run PPSA26344 with ThatsLeo's e893efad and post the next stop? It follows the layout above and is untested with the title.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6105688569 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2746#issuecomment-6105688569). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-11T05:06:36Z. --- @rohankmr414 could you run PPSA26344 with ThatsLeo's `e893efad` and post the next stop? It follows the layout above and is untested with the title.
rohankmr414 commented 2026-10-11 05:18:38 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by rohankmr414 on 2026-10-11T05:18:38Z.


@oneandonlydean @ThatsLeo I tested e893efad with Ghost of Yōtei PPSA26344, version 02.002.000, on Fedora 44, Ryzen 7 7800X3D / RTX 5070, GCC Release build.

Direct result with the VideoOut change

With e893efad on base 57f96fd2, the title gets past the missing sceVideoOutGetOutputStatusWithVrr import and call, initializes Vulkan and the controller, then stops with:

terminate called after throwing an instance of 'std::invalid_argument'
  what(): unsupported scalar source operand code 235 at program counter 856

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), and 0d8b6970 (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, stage 5, wave 64, push offset/capacity 128/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 0x800038be00 as 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6105769789 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2746#issuecomment-6105769789). Originally posted by [rohankmr414](https://github.com/rohankmr414) on 2026-10-11T05:18:38Z. --- @oneandonlydean @ThatsLeo I tested `e893efad` with Ghost of Yōtei `PPSA26344`, version `02.002.000`, on Fedora 44, Ryzen 7 7800X3D / RTX 5070, GCC Release build. ### Direct result with the VideoOut change With `e893efad` on base `57f96fd2`, the title gets past the missing `sceVideoOutGetOutputStatusWithVrr` import and call, initializes Vulkan and the controller, then stops with: ```text terminate called after throwing an instance of 'std::invalid_argument' what(): unsupported scalar source operand code 235 at program counter 856 ``` 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), and `0d8b6970` (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`, stage `5`, wave `64`, push offset/capacity `128/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 `0x800038be00` as 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.
xXPBSXx commented 2026-10-11 07:30:53 +00:00 (Migrated from github.com)
Author
Contributor

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 (current main 06da1176 plus 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 on sceVideoOutGetOutputStatusWithVrr, and in a 100 s run it goes on to the next stop:

what(): sceConvertKeycodeGetCharacter not implemented

sceConvertKeycodeGetCharacter is declared in libSceConvertKeycode without 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 reached sceConvertKeycodeGetCharacter, so the two agree on the next stop.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6106697412 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2746#issuecomment-6106697412). Originally posted by [xXPBSXx](https://github.com/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 (current `main` 06da1176 plus 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 on `sceVideoOutGetOutputStatusWithVrr`, and in a 100 s run it goes on to the next stop: ``` what(): sceConvertKeycodeGetCharacter not implemented ``` `sceConvertKeycodeGetCharacter` is declared in `libSceConvertKeycode` without 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 reached `sceConvertKeycodeGetCharacter`, so the two agree on the next stop. AI-assisted (Claude Code).
oneandonlydean commented 2026-10-14 04:30:43 +00:00 (Migrated from github.com)
Author
Contributor

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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6160925515 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2746#issuecomment-6160925515). Originally posted by [oneandonlydean](https://github.com/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.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#2746
No description provided.