fix(videoout): answer output mode queries with the console's codes #1496

Merged
hugodearaujo merged 1 commit from upstream-pr/1496 into main 2026-10-10 01:04:34 +00:00
hugodearaujo commented 2026-10-08 09:20:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by hugodearaujo on 2026-10-08T09:20:12Z.


What

I measured sceVideoOutInitializeOutputOptions and sceVideoOutIsOutputSupported on a PS5 (firmware 13.60) by loading libSceVideoOut.sprx with dlopen from a homebrew payload. The payload opened its own handle (sceVideoOutOpen(255, 0, 0, NULL)), queried it, and closed it. It never called sceVideoOutConfigureOutput.

Call Console main
InitializeOutputOptions(&opts) the 64 bytes are zero except byte 2 = 0xFF all zero
InitializeOutputOptions(NULL) 0x80290002 INVALID_ADDRESS throws
IsOutputSupported with handle -1, 0, 1, INT_MAX, or a closed handle 0x8029000B INVALID_HANDLE, whatever the other arguments throws
reserved pointer or reserved value non-zero 0x80290001 INVALID_VALUE (checked before the mode) throws
mode 1 1 1
mode 15 (119.88 Hz) on a 120 Hz TV 1 0
modes 4, 7, 8, 12, 13, 14, 16, 17, 19 0x80290016 UNSUPPORTED_OUTPUT_MODE 0
every other value from 0 to 63, 0x100, 0xd000000a, 0xffffffff, 2^63+1, ~0 0x8029001E 0
options all zero, or any bit flipped outside word 3 (mode 1) 0x80290001 INVALID_VALUE (checked after the mode) throws INVALID_OPTION
any value in word 3 (each of the 32 bits, and all of them) accepted throws
null options accepted accepted

So the console never answers 0. It checks the handle, then the reserved arguments, then the mode, then the options. With this branch, IsOutputSupported and ConfigureOutput, which validates the same way, return those codes. The only answer that depends on the display is mode 15. This branch keeps the current policy of supporting only the default mode, so 15 gets UNSUPPORTED_OUTPUT_MODE, which is what PS5_Vulkan measured ConfigureOutput(15) returns for a title that does not declare high-frame-rate output. Their independent mode table, from another console, agrees with mine except for mode 18: they got 0x80290016, I got 0x8029001E. Mode 18 therefore throws here. 0x8029001E has no public name: the PS4 VideoOut error list ends at 0x8029001A. I named it VIDEO_OUT_ERROR_UNKNOWN_OUTPUT_MODE, and the TechnicalDebt entry says the name is ours.

VideoOutDriver::IsOpen throws for a handle that does not exist, and other functions rely on that. So this adds HasConfig, which only checks whether the handle is open, and validateOutputConfig uses it before calling IsOpen.

Title: Propagation: Paradise Hotel (PPSA15878) calls sceVideoOutInitializeOutputOptions(&opts) and then sceVideoOutIsOutputSupported(handle, 15, &opts, 0, 0). If the answer is 1, it calls sceVideoOutConfigureOutput(handle, 15, &opts, 0, 0) and checks its result against 0x80290016. The first two are called from one direct call site each in the game executable. ConfigureOutput is called from two sites. On main, the title's mode 15 query returns 0, a value the console never returns. Its param.json has attribute3 0x20c00, without the high-frame-rate bit, so a console would not configure 15 for it either. Answering UNSUPPORTED_OUTPUT_MODE keeps it at 59.94 Hz, as on hardware.

Tested

  • PS5 firmware 13.60: every row of the table. The probe source and the raw output are in the comment below.
  • Linux: build, libs, full CTest 431/431 (on main as of today). The new guest_video_out_output_mode covers every measured row; video_out_flip_tests (not in CTest) builds with its updated expectations.
  • Windows Server 2025 VM, WinLibs GCC 15.2, CI configure flags: build, libs, CTest 0 failed of 407, guest_video_out_output_mode included (GPU execution tests skipped, the VM has no GPU).
  • Mutation check: 15 mutations each make guest_video_out_output_mode fail. They cover the handle, reserved, and options checks, the free word, the first word, the unsupported and unknown mode sets, mode 18, the null-options path, InitializeOutputOptions, and HasConfig on a closed port. A 16th mutation (return 1 → mode == DEFAULT ? 1 : 0) is equivalent, since only the default mode reaches that line.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4784582674 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1496). Originally posted by [hugodearaujo](https://github.com/hugodearaujo) on 2026-10-08T09:20:12Z. --- ### What I measured `sceVideoOutInitializeOutputOptions` and `sceVideoOutIsOutputSupported` on a PS5 (firmware 13.60) by loading `libSceVideoOut.sprx` with `dlopen` from a homebrew payload. The payload opened its own handle (`sceVideoOutOpen(255, 0, 0, NULL)`), queried it, and closed it. It never called `sceVideoOutConfigureOutput`. | Call | Console | `main` | |---|---|---| | `InitializeOutputOptions(&opts)` | the 64 bytes are zero except **byte 2 = `0xFF`** | all zero | | `InitializeOutputOptions(NULL)` | `0x80290002` INVALID_ADDRESS | throws | | `IsOutputSupported` with handle `-1`, `0`, `1`, `INT_MAX`, or a closed handle | `0x8029000B` INVALID_HANDLE, whatever the other arguments | throws | | reserved pointer or reserved value non-zero | `0x80290001` INVALID_VALUE (checked before the mode) | throws | | mode `1` | `1` | `1` | | mode `15` (119.88 Hz) on a 120 Hz TV | `1` | `0` | | modes `4, 7, 8, 12, 13, 14, 16, 17, 19` | `0x80290016` UNSUPPORTED_OUTPUT_MODE | `0` | | every other value from 0 to 63, `0x100`, `0xd000000a`, `0xffffffff`, `2^63+1`, `~0` | `0x8029001E` | `0` | | options all zero, or any bit flipped outside word 3 (mode 1) | `0x80290001` INVALID_VALUE (checked after the mode) | throws INVALID_OPTION | | any value in word 3 (each of the 32 bits, and all of them) | accepted | throws | | null options | accepted | accepted | So the console never answers 0. It checks the handle, then the reserved arguments, then the mode, then the options. With this branch, `IsOutputSupported` and `ConfigureOutput`, which validates the same way, return those codes. The only answer that depends on the display is mode 15. This branch keeps the current policy of supporting only the default mode, so 15 gets UNSUPPORTED_OUTPUT_MODE, which is what [PS5_Vulkan measured](https://github.com/mihawk-99/PS5_Vulkan/blob/5b5e4fc2d80fdb67a4f61ba9e6a8a424026bb8a5/docs/HARDWARE_FINDINGS.md) `ConfigureOutput(15)` returns for a title that does not declare high-frame-rate output. Their independent mode table, from another console, agrees with mine except for mode 18: they got `0x80290016`, I got `0x8029001E`. Mode 18 therefore throws here. `0x8029001E` has no public name: the PS4 VideoOut error list ends at `0x8029001A`. I named it `VIDEO_OUT_ERROR_UNKNOWN_OUTPUT_MODE`, and the TechnicalDebt entry says the name is ours. `VideoOutDriver::IsOpen` throws for a handle that does not exist, and other functions rely on that. So this adds `HasConfig`, which only checks whether the handle is open, and `validateOutputConfig` uses it before calling `IsOpen`. Title: Propagation: Paradise Hotel (PPSA15878) calls `sceVideoOutInitializeOutputOptions(&opts)` and then `sceVideoOutIsOutputSupported(handle, 15, &opts, 0, 0)`. If the answer is 1, it calls `sceVideoOutConfigureOutput(handle, 15, &opts, 0, 0)` and checks its result against `0x80290016`. The first two are called from one direct call site each in the game executable. `ConfigureOutput` is called from two sites. On `main`, the title's mode 15 query returns 0, a value the console never returns. Its param.json has attribute3 `0x20c00`, without the high-frame-rate bit, so a console would not configure 15 for it either. Answering UNSUPPORTED_OUTPUT_MODE keeps it at 59.94 Hz, as on hardware. ### Tested - PS5 firmware 13.60: every row of the table. The probe source and the raw output are in the comment below. - Linux: build, `libs`, full CTest 431/431 (on main as of today). The new `guest_video_out_output_mode` covers every measured row; `video_out_flip_tests` (not in CTest) builds with its updated expectations. - Windows Server 2025 VM, WinLibs GCC 15.2, CI configure flags: build, `libs`, CTest 0 failed of 407, `guest_video_out_output_mode` included (GPU execution tests skipped, the VM has no GPU). - Mutation check: 15 mutations each make `guest_video_out_output_mode` fail. They cover the handle, reserved, and options checks, the free word, the first word, the unsupported and unknown mode sets, mode 18, the null-options path, `InitializeOutputOptions`, and `HasConfig` on a closed port. A 16th mutation (`return 1` → `mode == DEFAULT ? 1 : 0`) is equivalent, since only the default mode reaches that line. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in TechnicalDebt - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
hugodearaujo commented 2026-10-08 09:20:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by hugodearaujo on 2026-10-08T09:20:22Z.


Probes and raw output. They are ps5-payload-sdk v0.43 payloads (prospero-clang -O1 -rdynamic) that load libSceVideoOut.sprx with dlopen. Run 2 and run 3 open their own handle with sceVideoOutOpen(255, 0, 0, NULL) and close it at the end, and none of them calls sceVideoOutConfigureOutput.

Run 1, no handle opened: noopen_main.c
#include "../probe/probe.h"
#include <dlfcn.h>
#include <stdint.h>
#include <string.h>
typedef int (*InitOptsFn)(void*);
typedef int (*SupportedFn)(int, uint64_t, const void*, void*, uint64_t);
int main(void) {
    int client = probe_begin();
    if (client < 0) return 1;
    printf("STEP dlopen\n"); fflush(stdout);
    void* lib = dlopen("libSceVideoOut.sprx", RTLD_LAZY);
    if (!lib) { printf("dlopen failed: %s\n", dlerror()); probe_end(client); return 1; }
    InitOptsFn initOpts = (InitOptsFn)dlsym(lib, "sceVideoOutInitializeOutputOptions");
    SupportedFn supported = (SupportedFn)dlsym(lib, "sceVideoOutIsOutputSupported");
    printf("dlsym init=%p supported=%p\n", (void*)initOpts, (void*)supported);
    if (!initOpts || !supported) { probe_end(client); return 1; }
    unsigned char opts[256];
    memset(opts, 0xAA, sizeof(opts));
    printf("STEP initopts\n"); fflush(stdout);
    int rc = initOpts(opts);
    size_t last = 0;
    for (size_t i = 0; i < sizeof(opts); ++i) if (opts[i] != 0xAA) last = i + 1;
    printf("INITOPTS|rc=%08x|written=%zu|", (unsigned)rc, last);
    for (size_t i = 0; i < last; ++i) printf("%02x", opts[i]);
    printf("\n");
    printf("INITOPTS_NULL|rc=%08x\n", (unsigned)initOpts(NULL));
    static const int handles[] = {-1, 0, 1, 0x7fffffff};
    static const uint64_t modes[] = {0, 1, 2, 0xf, 0x10, 0xd000000aull, 0xffffffffffffffffull};
    for (size_t h = 0; h < sizeof(handles) / sizeof(handles[0]); ++h)
        for (size_t m = 0; m < sizeof(modes) / sizeof(modes[0]); ++m) {
            printf("STEP supported h=%d mode=%llx\n", handles[h], (unsigned long long)modes[m]); fflush(stdout);
            printf("SUPPORTED|h=%d|mode=%llx|opts|rc=%08x\n", handles[h], (unsigned long long)modes[m], (unsigned)supported(handles[h], modes[m], opts, NULL, 0));
            printf("SUPPORTED|h=%d|mode=%llx|null|rc=%08x\n", handles[h], (unsigned long long)modes[m], (unsigned)supported(handles[h], modes[m], NULL, NULL, 0));
        }
    printf("SUPPORTED|h=-1|mode=f|reservedPtr|rc=%08x\n", (unsigned)supported(-1, 0xf, opts, opts, 0));
    printf("SUPPORTED|h=-1|mode=f|reserved|rc=%08x\n", (unsigned)supported(-1, 0xf, opts, NULL, 1));
    probe_end(client);
    return 0;
}
Run 2, own handle: open_main.c
#include "../probe/probe.h"
#include <dlfcn.h>
#include <stdint.h>
#include <string.h>
typedef int (*OpenFn)(int, int, int, const void*);
typedef int (*CloseFn)(int);
typedef int (*InitOptsFn)(void*);
typedef int (*SupportedFn)(int, uint64_t, const void*, void*, uint64_t);
static SupportedFn supported;
static void query(int h, uint64_t mode, const void* opts, void* rp, uint64_t r, const char* label) {
    printf("STEP %s mode=%llx\n", label, (unsigned long long)mode); fflush(stdout);
    int rc = supported(h, mode, opts, rp, r);
    printf("Q|%s|mode=%llx|rc=%08x\n", label, (unsigned long long)mode, (unsigned)rc); fflush(stdout);
}
int main(void) {
    int client = probe_begin();
    if (client < 0) return 1;
    void* lib = dlopen("libSceVideoOut.sprx", RTLD_LAZY);
    OpenFn vopen = (OpenFn)dlsym(lib, "sceVideoOutOpen");
    CloseFn vclose = (CloseFn)dlsym(lib, "sceVideoOutClose");
    InitOptsFn initOpts = (InitOptsFn)dlsym(lib, "sceVideoOutInitializeOutputOptions");
    supported = (SupportedFn)dlsym(lib, "sceVideoOutIsOutputSupported");
    printf("dlsym open=%p close=%p\n", (void*)vopen, (void*)vclose);
    if (!vopen || !vclose || !initOpts || !supported) { probe_end(client); return 1; }
    printf("STEP open\n"); fflush(stdout);
    int h = vopen(0xFF, 0, 0, NULL);
    printf("OPEN|rc=%08x\n", (unsigned)h); fflush(stdout);
    if (h < 0) { probe_end(client); return 0; }
    uint32_t opts[16];
    initOpts(opts);
    for (uint64_t m = 0; m <= 0x20; ++m) query(h, m, opts, NULL, 0, "opts");
    static const uint64_t more[] = {0x40, 0x80, 0x100, 0xd000000aull, 0xd0000000ull, 0x1000000000000001ull, 0x8000000000000001ull, 0xffffffffull, 0xffffffffffffffffull};
    for (size_t i = 0; i < sizeof(more) / sizeof(more[0]); ++i) query(h, more[i], opts, NULL, 0, "opts");
    query(h, 1, NULL, NULL, 0, "nullopts");
    query(h, 0xf, NULL, NULL, 0, "nullopts");
    query(h, 1, opts, opts, 0, "reservedptr");
    query(h, 1, opts, NULL, 1, "reserved");
    uint32_t z[16] = {0};
    query(h, 1, z, NULL, 0, "zeroopts");
    query(h, 0xf, z, NULL, 0, "zeroopts");
    for (int w = 0; w < 16; ++w) {
        uint32_t o[16];
        memcpy(o, opts, sizeof(o));
        o[w] ^= 1;
        char label[32];
        snprintf(label, sizeof(label), "flip w%d bit0", w);
        query(h, 1, o, NULL, 0, label);
    }
    {
        uint32_t o[16];
        memcpy(o, opts, sizeof(o));
        o[0] = 0x00010000;
        query(h, 1, o, NULL, 0, "w0=0x00010000");
        o[0] = 0x00000001;
        query(h, 1, o, NULL, 0, "w0=0x00000001");
        o[0] = 0xffffffff;
        query(h, 1, o, NULL, 0, "w0=0xffffffff");
    }
    printf("STEP close\n"); fflush(stdout);
    printf("CLOSE|rc=%08x\n", (unsigned)vclose(h));
    printf("Q-after-close|rc=%08x\n", (unsigned)supported(h, 1, opts, NULL, 0));
    probe_end(client);
    return 0;
}
Run 3, own handle (word 3 bits, check order, modes 0x21-0x3F): open2_main.c
#include "../probe/probe.h"
#include <dlfcn.h>
#include <stdint.h>
#include <string.h>
typedef int (*OpenFn)(int, int, int, const void*);
typedef int (*CloseFn)(int);
typedef int (*InitOptsFn)(void*);
typedef int (*SupportedFn)(int, uint64_t, const void*, void*, uint64_t);
static SupportedFn supported;
static void query(int h, uint64_t mode, const void* opts, void* rp, uint64_t r, const char* label) {
    printf("STEP %s mode=%llx\n", label, (unsigned long long)mode); fflush(stdout);
    int rc = supported(h, mode, opts, rp, r);
    printf("Q|%s|mode=%llx|rc=%08x\n", label, (unsigned long long)mode, (unsigned)rc); fflush(stdout);
}
int main(void) {
    int client = probe_begin();
    if (client < 0) return 1;
    void* lib = dlopen("libSceVideoOut.sprx", RTLD_LAZY);
    OpenFn vopen = (OpenFn)dlsym(lib, "sceVideoOutOpen");
    CloseFn vclose = (CloseFn)dlsym(lib, "sceVideoOutClose");
    InitOptsFn initOpts = (InitOptsFn)dlsym(lib, "sceVideoOutInitializeOutputOptions");
    supported = (SupportedFn)dlsym(lib, "sceVideoOutIsOutputSupported");
    printf("dlsym open=%p close=%p\n", (void*)vopen, (void*)vclose);
    if (!vopen || !vclose || !initOpts || !supported) { probe_end(client); return 1; }
    printf("STEP open\n"); fflush(stdout);
    int h = vopen(0xFF, 0, 0, NULL);
    printf("OPEN|rc=%08x\n", (unsigned)h); fflush(stdout);
    if (h < 0) { probe_end(client); return 0; }
    uint32_t opts[16];
    initOpts(opts);
    for (uint64_t m = 0x21; m <= 0x3f; ++m) query(h, m, opts, NULL, 0, "opts");
    for (int bit = 0; bit < 32; ++bit) {
        uint32_t o[16];
        memcpy(o, opts, sizeof(o));
        o[3] = 1u << bit;
        char label[32];
        snprintf(label, sizeof(label), "w3=1<<%d", bit);
        query(h, 1, o, NULL, 0, label);
    }
    {
        uint32_t o[16];
        memcpy(o, opts, sizeof(o));
        o[3] = 0xffffffffu;
        query(h, 1, o, NULL, 0, "w3=all");
        o[3] = 1;
        query(h, 0xf, o, NULL, 0, "w3=1 mode f");
        query(h, 4, o, NULL, 0, "w3=1 mode 4");
        uint32_t z[16] = {0};
        query(h, 2, z, NULL, 0, "undefined mode + zero opts");
        query(h, 4, z, NULL, 0, "unsupported mode + zero opts");
        query(h, 2, opts, NULL, 1, "undefined mode + reserved");
        query(h, 4, opts, opts, 0, "unsupported mode + reservedptr");
        query(h, 2, NULL, NULL, 0, "undefined mode + null opts");
        query(h, 4, NULL, NULL, 0, "unsupported mode + null opts");
        query(-1, 2, z, opts, 1, "bad handle + everything bad");
    }
    printf("STEP close\n"); fflush(stdout);
    printf("CLOSE|rc=%08x\n", (unsigned)vclose(h));
    printf("Q-after-close|rc=%08x\n", (unsigned)supported(h, 1, opts, NULL, 0));
    probe_end(client);
    return 0;
}
raw output (runs 1-3)
INITOPTS|rc=00000000|written=64|0000ff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
INITOPTS_NULL|rc=80290002
SUPPORTED|h=-1|mode=0|opts|rc=8029000b
SUPPORTED|h=-1|mode=0|null|rc=8029000b
SUPPORTED|h=-1|mode=1|opts|rc=8029000b
SUPPORTED|h=-1|mode=1|null|rc=8029000b
SUPPORTED|h=-1|mode=2|opts|rc=8029000b
SUPPORTED|h=-1|mode=2|null|rc=8029000b
SUPPORTED|h=-1|mode=f|opts|rc=8029000b
SUPPORTED|h=-1|mode=f|null|rc=8029000b
SUPPORTED|h=-1|mode=10|opts|rc=8029000b
SUPPORTED|h=-1|mode=10|null|rc=8029000b
SUPPORTED|h=-1|mode=d000000a|opts|rc=8029000b
SUPPORTED|h=-1|mode=d000000a|null|rc=8029000b
SUPPORTED|h=-1|mode=ffffffffffffffff|opts|rc=8029000b
SUPPORTED|h=-1|mode=ffffffffffffffff|null|rc=8029000b
SUPPORTED|h=0|mode=0|opts|rc=8029000b
SUPPORTED|h=0|mode=0|null|rc=8029000b
SUPPORTED|h=0|mode=1|opts|rc=8029000b
SUPPORTED|h=0|mode=1|null|rc=8029000b
SUPPORTED|h=0|mode=2|opts|rc=8029000b
SUPPORTED|h=0|mode=2|null|rc=8029000b
SUPPORTED|h=0|mode=f|opts|rc=8029000b
SUPPORTED|h=0|mode=f|null|rc=8029000b
SUPPORTED|h=0|mode=10|opts|rc=8029000b
SUPPORTED|h=0|mode=10|null|rc=8029000b
SUPPORTED|h=0|mode=d000000a|opts|rc=8029000b
SUPPORTED|h=0|mode=d000000a|null|rc=8029000b
SUPPORTED|h=0|mode=ffffffffffffffff|opts|rc=8029000b
SUPPORTED|h=0|mode=ffffffffffffffff|null|rc=8029000b
SUPPORTED|h=1|mode=0|opts|rc=8029000b
SUPPORTED|h=1|mode=0|null|rc=8029000b
SUPPORTED|h=1|mode=1|opts|rc=8029000b
SUPPORTED|h=1|mode=1|null|rc=8029000b
SUPPORTED|h=1|mode=2|opts|rc=8029000b
SUPPORTED|h=1|mode=2|null|rc=8029000b
SUPPORTED|h=1|mode=f|opts|rc=8029000b
SUPPORTED|h=1|mode=f|null|rc=8029000b
SUPPORTED|h=1|mode=10|opts|rc=8029000b
SUPPORTED|h=1|mode=10|null|rc=8029000b
SUPPORTED|h=1|mode=d000000a|opts|rc=8029000b
SUPPORTED|h=1|mode=d000000a|null|rc=8029000b
SUPPORTED|h=1|mode=ffffffffffffffff|opts|rc=8029000b
SUPPORTED|h=1|mode=ffffffffffffffff|null|rc=8029000b
SUPPORTED|h=2147483647|mode=0|opts|rc=8029000b
SUPPORTED|h=2147483647|mode=0|null|rc=8029000b
SUPPORTED|h=2147483647|mode=1|opts|rc=8029000b
SUPPORTED|h=2147483647|mode=1|null|rc=8029000b
SUPPORTED|h=2147483647|mode=2|opts|rc=8029000b
SUPPORTED|h=2147483647|mode=2|null|rc=8029000b
SUPPORTED|h=2147483647|mode=f|opts|rc=8029000b
SUPPORTED|h=2147483647|mode=f|null|rc=8029000b
SUPPORTED|h=2147483647|mode=10|opts|rc=8029000b
SUPPORTED|h=2147483647|mode=10|null|rc=8029000b
SUPPORTED|h=2147483647|mode=d000000a|opts|rc=8029000b
SUPPORTED|h=2147483647|mode=d000000a|null|rc=8029000b
SUPPORTED|h=2147483647|mode=ffffffffffffffff|opts|rc=8029000b
SUPPORTED|h=2147483647|mode=ffffffffffffffff|null|rc=8029000b
SUPPORTED|h=-1|mode=f|reservedPtr|rc=8029000b
SUPPORTED|h=-1|mode=f|reserved|rc=8029000b
PROBE DONE
OPEN|rc=4e100100
Q|opts|mode=0|rc=8029001e
Q|opts|mode=1|rc=00000001
Q|opts|mode=2|rc=8029001e
Q|opts|mode=3|rc=8029001e
Q|opts|mode=4|rc=80290016
Q|opts|mode=5|rc=8029001e
Q|opts|mode=6|rc=8029001e
Q|opts|mode=7|rc=80290016
Q|opts|mode=8|rc=80290016
Q|opts|mode=9|rc=8029001e
Q|opts|mode=a|rc=8029001e
Q|opts|mode=b|rc=8029001e
Q|opts|mode=c|rc=80290016
Q|opts|mode=d|rc=80290016
Q|opts|mode=e|rc=80290016
Q|opts|mode=f|rc=00000001
Q|opts|mode=10|rc=80290016
Q|opts|mode=11|rc=80290016
Q|opts|mode=12|rc=8029001e
Q|opts|mode=13|rc=80290016
Q|opts|mode=14|rc=8029001e
Q|opts|mode=15|rc=8029001e
Q|opts|mode=16|rc=8029001e
Q|opts|mode=17|rc=8029001e
Q|opts|mode=18|rc=8029001e
Q|opts|mode=19|rc=8029001e
Q|opts|mode=1a|rc=8029001e
Q|opts|mode=1b|rc=8029001e
Q|opts|mode=1c|rc=8029001e
Q|opts|mode=1d|rc=8029001e
Q|opts|mode=1e|rc=8029001e
Q|opts|mode=1f|rc=8029001e
Q|opts|mode=20|rc=8029001e
Q|opts|mode=40|rc=8029001e
Q|opts|mode=80|rc=8029001e
Q|opts|mode=100|rc=8029001e
Q|opts|mode=d000000a|rc=8029001e
Q|opts|mode=d0000000|rc=8029001e
Q|opts|mode=1000000000000001|rc=8029001e
Q|opts|mode=8000000000000001|rc=8029001e
Q|opts|mode=ffffffff|rc=8029001e
Q|opts|mode=ffffffffffffffff|rc=8029001e
Q|nullopts|mode=1|rc=00000001
Q|nullopts|mode=f|rc=00000001
Q|reservedptr|mode=1|rc=80290001
Q|reserved|mode=1|rc=80290001
Q|zeroopts|mode=1|rc=80290001
Q|zeroopts|mode=f|rc=80290001
Q|flip w0 bit0|mode=1|rc=80290001
Q|flip w1 bit0|mode=1|rc=80290001
Q|flip w2 bit0|mode=1|rc=80290001
Q|flip w3 bit0|mode=1|rc=00000001
Q|flip w4 bit0|mode=1|rc=80290001
Q|flip w5 bit0|mode=1|rc=80290001
Q|flip w6 bit0|mode=1|rc=80290001
Q|flip w7 bit0|mode=1|rc=80290001
Q|flip w8 bit0|mode=1|rc=80290001
Q|flip w9 bit0|mode=1|rc=80290001
Q|flip w10 bit0|mode=1|rc=80290001
Q|flip w11 bit0|mode=1|rc=80290001
Q|flip w12 bit0|mode=1|rc=80290001
Q|flip w13 bit0|mode=1|rc=80290001
Q|flip w14 bit0|mode=1|rc=80290001
Q|flip w15 bit0|mode=1|rc=80290001
Q|w0=0x00010000|mode=1|rc=80290001
Q|w0=0x00000001|mode=1|rc=80290001
Q|w0=0xffffffff|mode=1|rc=80290001
CLOSE|rc=00000000
Q-after-close|rc=8029000b
PROBE DONE
OPEN|rc=4e100100
Q|opts|mode=21|rc=8029001e
Q|opts|mode=22|rc=8029001e
Q|opts|mode=23|rc=8029001e
Q|opts|mode=24|rc=8029001e
Q|opts|mode=25|rc=8029001e
Q|opts|mode=26|rc=8029001e
Q|opts|mode=27|rc=8029001e
Q|opts|mode=28|rc=8029001e
Q|opts|mode=29|rc=8029001e
Q|opts|mode=2a|rc=8029001e
Q|opts|mode=2b|rc=8029001e
Q|opts|mode=2c|rc=8029001e
Q|opts|mode=2d|rc=8029001e
Q|opts|mode=2e|rc=8029001e
Q|opts|mode=2f|rc=8029001e
Q|opts|mode=30|rc=8029001e
Q|opts|mode=31|rc=8029001e
Q|opts|mode=32|rc=8029001e
Q|opts|mode=33|rc=8029001e
Q|opts|mode=34|rc=8029001e
Q|opts|mode=35|rc=8029001e
Q|opts|mode=36|rc=8029001e
Q|opts|mode=37|rc=8029001e
Q|opts|mode=38|rc=8029001e
Q|opts|mode=39|rc=8029001e
Q|opts|mode=3a|rc=8029001e
Q|opts|mode=3b|rc=8029001e
Q|opts|mode=3c|rc=8029001e
Q|opts|mode=3d|rc=8029001e
Q|opts|mode=3e|rc=8029001e
Q|opts|mode=3f|rc=8029001e
Q|w3=1<<0|mode=1|rc=00000001
Q|w3=1<<1|mode=1|rc=00000001
Q|w3=1<<2|mode=1|rc=00000001
Q|w3=1<<3|mode=1|rc=00000001
Q|w3=1<<4|mode=1|rc=00000001
Q|w3=1<<5|mode=1|rc=00000001
Q|w3=1<<6|mode=1|rc=00000001
Q|w3=1<<7|mode=1|rc=00000001
Q|w3=1<<8|mode=1|rc=00000001
Q|w3=1<<9|mode=1|rc=00000001
Q|w3=1<<10|mode=1|rc=00000001
Q|w3=1<<11|mode=1|rc=00000001
Q|w3=1<<12|mode=1|rc=00000001
Q|w3=1<<13|mode=1|rc=00000001
Q|w3=1<<14|mode=1|rc=00000001
Q|w3=1<<15|mode=1|rc=00000001
Q|w3=1<<16|mode=1|rc=00000001
Q|w3=1<<17|mode=1|rc=00000001
Q|w3=1<<18|mode=1|rc=00000001
Q|w3=1<<19|mode=1|rc=00000001
Q|w3=1<<20|mode=1|rc=00000001
Q|w3=1<<21|mode=1|rc=00000001
Q|w3=1<<22|mode=1|rc=00000001
Q|w3=1<<23|mode=1|rc=00000001
Q|w3=1<<24|mode=1|rc=00000001
Q|w3=1<<25|mode=1|rc=00000001
Q|w3=1<<26|mode=1|rc=00000001
Q|w3=1<<27|mode=1|rc=00000001
Q|w3=1<<28|mode=1|rc=00000001
Q|w3=1<<29|mode=1|rc=00000001
Q|w3=1<<30|mode=1|rc=00000001
Q|w3=1<<31|mode=1|rc=00000001
Q|w3=all|mode=1|rc=00000001
Q|w3=1 mode f|mode=f|rc=00000001
Q|w3=1 mode 4|mode=4|rc=80290016
Q|undefined mode + zero opts|mode=2|rc=8029001e
Q|unsupported mode + zero opts|mode=4|rc=80290016
Q|undefined mode + reserved|mode=2|rc=80290001
Q|unsupported mode + reservedptr|mode=4|rc=80290001
Q|undefined mode + null opts|mode=2|rc=8029001e
Q|unsupported mode + null opts|mode=4|rc=80290016
Q|bad handle + everything bad|mode=2|rc=8029000b
CLOSE|rc=00000000
Q-after-close|rc=8029000b
PROBE DONE
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6056750015 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1496#issuecomment-6056750015). Originally posted by [hugodearaujo](https://github.com/hugodearaujo) on 2026-10-08T09:20:22Z. --- Probes and raw output. They are ps5-payload-sdk v0.43 payloads (`prospero-clang -O1 -rdynamic`) that load `libSceVideoOut.sprx` with `dlopen`. Run 2 and run 3 open their own handle with `sceVideoOutOpen(255, 0, 0, NULL)` and close it at the end, and none of them calls `sceVideoOutConfigureOutput`. <details><summary>Run 1, no handle opened: noopen_main.c</summary> ```c #include "../probe/probe.h" #include <dlfcn.h> #include <stdint.h> #include <string.h> typedef int (*InitOptsFn)(void*); typedef int (*SupportedFn)(int, uint64_t, const void*, void*, uint64_t); int main(void) { int client = probe_begin(); if (client < 0) return 1; printf("STEP dlopen\n"); fflush(stdout); void* lib = dlopen("libSceVideoOut.sprx", RTLD_LAZY); if (!lib) { printf("dlopen failed: %s\n", dlerror()); probe_end(client); return 1; } InitOptsFn initOpts = (InitOptsFn)dlsym(lib, "sceVideoOutInitializeOutputOptions"); SupportedFn supported = (SupportedFn)dlsym(lib, "sceVideoOutIsOutputSupported"); printf("dlsym init=%p supported=%p\n", (void*)initOpts, (void*)supported); if (!initOpts || !supported) { probe_end(client); return 1; } unsigned char opts[256]; memset(opts, 0xAA, sizeof(opts)); printf("STEP initopts\n"); fflush(stdout); int rc = initOpts(opts); size_t last = 0; for (size_t i = 0; i < sizeof(opts); ++i) if (opts[i] != 0xAA) last = i + 1; printf("INITOPTS|rc=%08x|written=%zu|", (unsigned)rc, last); for (size_t i = 0; i < last; ++i) printf("%02x", opts[i]); printf("\n"); printf("INITOPTS_NULL|rc=%08x\n", (unsigned)initOpts(NULL)); static const int handles[] = {-1, 0, 1, 0x7fffffff}; static const uint64_t modes[] = {0, 1, 2, 0xf, 0x10, 0xd000000aull, 0xffffffffffffffffull}; for (size_t h = 0; h < sizeof(handles) / sizeof(handles[0]); ++h) for (size_t m = 0; m < sizeof(modes) / sizeof(modes[0]); ++m) { printf("STEP supported h=%d mode=%llx\n", handles[h], (unsigned long long)modes[m]); fflush(stdout); printf("SUPPORTED|h=%d|mode=%llx|opts|rc=%08x\n", handles[h], (unsigned long long)modes[m], (unsigned)supported(handles[h], modes[m], opts, NULL, 0)); printf("SUPPORTED|h=%d|mode=%llx|null|rc=%08x\n", handles[h], (unsigned long long)modes[m], (unsigned)supported(handles[h], modes[m], NULL, NULL, 0)); } printf("SUPPORTED|h=-1|mode=f|reservedPtr|rc=%08x\n", (unsigned)supported(-1, 0xf, opts, opts, 0)); printf("SUPPORTED|h=-1|mode=f|reserved|rc=%08x\n", (unsigned)supported(-1, 0xf, opts, NULL, 1)); probe_end(client); return 0; } ``` </details> <details><summary>Run 2, own handle: open_main.c</summary> ```c #include "../probe/probe.h" #include <dlfcn.h> #include <stdint.h> #include <string.h> typedef int (*OpenFn)(int, int, int, const void*); typedef int (*CloseFn)(int); typedef int (*InitOptsFn)(void*); typedef int (*SupportedFn)(int, uint64_t, const void*, void*, uint64_t); static SupportedFn supported; static void query(int h, uint64_t mode, const void* opts, void* rp, uint64_t r, const char* label) { printf("STEP %s mode=%llx\n", label, (unsigned long long)mode); fflush(stdout); int rc = supported(h, mode, opts, rp, r); printf("Q|%s|mode=%llx|rc=%08x\n", label, (unsigned long long)mode, (unsigned)rc); fflush(stdout); } int main(void) { int client = probe_begin(); if (client < 0) return 1; void* lib = dlopen("libSceVideoOut.sprx", RTLD_LAZY); OpenFn vopen = (OpenFn)dlsym(lib, "sceVideoOutOpen"); CloseFn vclose = (CloseFn)dlsym(lib, "sceVideoOutClose"); InitOptsFn initOpts = (InitOptsFn)dlsym(lib, "sceVideoOutInitializeOutputOptions"); supported = (SupportedFn)dlsym(lib, "sceVideoOutIsOutputSupported"); printf("dlsym open=%p close=%p\n", (void*)vopen, (void*)vclose); if (!vopen || !vclose || !initOpts || !supported) { probe_end(client); return 1; } printf("STEP open\n"); fflush(stdout); int h = vopen(0xFF, 0, 0, NULL); printf("OPEN|rc=%08x\n", (unsigned)h); fflush(stdout); if (h < 0) { probe_end(client); return 0; } uint32_t opts[16]; initOpts(opts); for (uint64_t m = 0; m <= 0x20; ++m) query(h, m, opts, NULL, 0, "opts"); static const uint64_t more[] = {0x40, 0x80, 0x100, 0xd000000aull, 0xd0000000ull, 0x1000000000000001ull, 0x8000000000000001ull, 0xffffffffull, 0xffffffffffffffffull}; for (size_t i = 0; i < sizeof(more) / sizeof(more[0]); ++i) query(h, more[i], opts, NULL, 0, "opts"); query(h, 1, NULL, NULL, 0, "nullopts"); query(h, 0xf, NULL, NULL, 0, "nullopts"); query(h, 1, opts, opts, 0, "reservedptr"); query(h, 1, opts, NULL, 1, "reserved"); uint32_t z[16] = {0}; query(h, 1, z, NULL, 0, "zeroopts"); query(h, 0xf, z, NULL, 0, "zeroopts"); for (int w = 0; w < 16; ++w) { uint32_t o[16]; memcpy(o, opts, sizeof(o)); o[w] ^= 1; char label[32]; snprintf(label, sizeof(label), "flip w%d bit0", w); query(h, 1, o, NULL, 0, label); } { uint32_t o[16]; memcpy(o, opts, sizeof(o)); o[0] = 0x00010000; query(h, 1, o, NULL, 0, "w0=0x00010000"); o[0] = 0x00000001; query(h, 1, o, NULL, 0, "w0=0x00000001"); o[0] = 0xffffffff; query(h, 1, o, NULL, 0, "w0=0xffffffff"); } printf("STEP close\n"); fflush(stdout); printf("CLOSE|rc=%08x\n", (unsigned)vclose(h)); printf("Q-after-close|rc=%08x\n", (unsigned)supported(h, 1, opts, NULL, 0)); probe_end(client); return 0; } ``` </details> <details><summary>Run 3, own handle (word 3 bits, check order, modes 0x21-0x3F): open2_main.c</summary> ```c #include "../probe/probe.h" #include <dlfcn.h> #include <stdint.h> #include <string.h> typedef int (*OpenFn)(int, int, int, const void*); typedef int (*CloseFn)(int); typedef int (*InitOptsFn)(void*); typedef int (*SupportedFn)(int, uint64_t, const void*, void*, uint64_t); static SupportedFn supported; static void query(int h, uint64_t mode, const void* opts, void* rp, uint64_t r, const char* label) { printf("STEP %s mode=%llx\n", label, (unsigned long long)mode); fflush(stdout); int rc = supported(h, mode, opts, rp, r); printf("Q|%s|mode=%llx|rc=%08x\n", label, (unsigned long long)mode, (unsigned)rc); fflush(stdout); } int main(void) { int client = probe_begin(); if (client < 0) return 1; void* lib = dlopen("libSceVideoOut.sprx", RTLD_LAZY); OpenFn vopen = (OpenFn)dlsym(lib, "sceVideoOutOpen"); CloseFn vclose = (CloseFn)dlsym(lib, "sceVideoOutClose"); InitOptsFn initOpts = (InitOptsFn)dlsym(lib, "sceVideoOutInitializeOutputOptions"); supported = (SupportedFn)dlsym(lib, "sceVideoOutIsOutputSupported"); printf("dlsym open=%p close=%p\n", (void*)vopen, (void*)vclose); if (!vopen || !vclose || !initOpts || !supported) { probe_end(client); return 1; } printf("STEP open\n"); fflush(stdout); int h = vopen(0xFF, 0, 0, NULL); printf("OPEN|rc=%08x\n", (unsigned)h); fflush(stdout); if (h < 0) { probe_end(client); return 0; } uint32_t opts[16]; initOpts(opts); for (uint64_t m = 0x21; m <= 0x3f; ++m) query(h, m, opts, NULL, 0, "opts"); for (int bit = 0; bit < 32; ++bit) { uint32_t o[16]; memcpy(o, opts, sizeof(o)); o[3] = 1u << bit; char label[32]; snprintf(label, sizeof(label), "w3=1<<%d", bit); query(h, 1, o, NULL, 0, label); } { uint32_t o[16]; memcpy(o, opts, sizeof(o)); o[3] = 0xffffffffu; query(h, 1, o, NULL, 0, "w3=all"); o[3] = 1; query(h, 0xf, o, NULL, 0, "w3=1 mode f"); query(h, 4, o, NULL, 0, "w3=1 mode 4"); uint32_t z[16] = {0}; query(h, 2, z, NULL, 0, "undefined mode + zero opts"); query(h, 4, z, NULL, 0, "unsupported mode + zero opts"); query(h, 2, opts, NULL, 1, "undefined mode + reserved"); query(h, 4, opts, opts, 0, "unsupported mode + reservedptr"); query(h, 2, NULL, NULL, 0, "undefined mode + null opts"); query(h, 4, NULL, NULL, 0, "unsupported mode + null opts"); query(-1, 2, z, opts, 1, "bad handle + everything bad"); } printf("STEP close\n"); fflush(stdout); printf("CLOSE|rc=%08x\n", (unsigned)vclose(h)); printf("Q-after-close|rc=%08x\n", (unsigned)supported(h, 1, opts, NULL, 0)); probe_end(client); return 0; } ``` </details> <details><summary>raw output (runs 1-3)</summary> ``` INITOPTS|rc=00000000|written=64|0000ff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 INITOPTS_NULL|rc=80290002 SUPPORTED|h=-1|mode=0|opts|rc=8029000b SUPPORTED|h=-1|mode=0|null|rc=8029000b SUPPORTED|h=-1|mode=1|opts|rc=8029000b SUPPORTED|h=-1|mode=1|null|rc=8029000b SUPPORTED|h=-1|mode=2|opts|rc=8029000b SUPPORTED|h=-1|mode=2|null|rc=8029000b SUPPORTED|h=-1|mode=f|opts|rc=8029000b SUPPORTED|h=-1|mode=f|null|rc=8029000b SUPPORTED|h=-1|mode=10|opts|rc=8029000b SUPPORTED|h=-1|mode=10|null|rc=8029000b SUPPORTED|h=-1|mode=d000000a|opts|rc=8029000b SUPPORTED|h=-1|mode=d000000a|null|rc=8029000b SUPPORTED|h=-1|mode=ffffffffffffffff|opts|rc=8029000b SUPPORTED|h=-1|mode=ffffffffffffffff|null|rc=8029000b SUPPORTED|h=0|mode=0|opts|rc=8029000b SUPPORTED|h=0|mode=0|null|rc=8029000b SUPPORTED|h=0|mode=1|opts|rc=8029000b SUPPORTED|h=0|mode=1|null|rc=8029000b SUPPORTED|h=0|mode=2|opts|rc=8029000b SUPPORTED|h=0|mode=2|null|rc=8029000b SUPPORTED|h=0|mode=f|opts|rc=8029000b SUPPORTED|h=0|mode=f|null|rc=8029000b SUPPORTED|h=0|mode=10|opts|rc=8029000b SUPPORTED|h=0|mode=10|null|rc=8029000b SUPPORTED|h=0|mode=d000000a|opts|rc=8029000b SUPPORTED|h=0|mode=d000000a|null|rc=8029000b SUPPORTED|h=0|mode=ffffffffffffffff|opts|rc=8029000b SUPPORTED|h=0|mode=ffffffffffffffff|null|rc=8029000b SUPPORTED|h=1|mode=0|opts|rc=8029000b SUPPORTED|h=1|mode=0|null|rc=8029000b SUPPORTED|h=1|mode=1|opts|rc=8029000b SUPPORTED|h=1|mode=1|null|rc=8029000b SUPPORTED|h=1|mode=2|opts|rc=8029000b SUPPORTED|h=1|mode=2|null|rc=8029000b SUPPORTED|h=1|mode=f|opts|rc=8029000b SUPPORTED|h=1|mode=f|null|rc=8029000b SUPPORTED|h=1|mode=10|opts|rc=8029000b SUPPORTED|h=1|mode=10|null|rc=8029000b SUPPORTED|h=1|mode=d000000a|opts|rc=8029000b SUPPORTED|h=1|mode=d000000a|null|rc=8029000b SUPPORTED|h=1|mode=ffffffffffffffff|opts|rc=8029000b SUPPORTED|h=1|mode=ffffffffffffffff|null|rc=8029000b SUPPORTED|h=2147483647|mode=0|opts|rc=8029000b SUPPORTED|h=2147483647|mode=0|null|rc=8029000b SUPPORTED|h=2147483647|mode=1|opts|rc=8029000b SUPPORTED|h=2147483647|mode=1|null|rc=8029000b SUPPORTED|h=2147483647|mode=2|opts|rc=8029000b SUPPORTED|h=2147483647|mode=2|null|rc=8029000b SUPPORTED|h=2147483647|mode=f|opts|rc=8029000b SUPPORTED|h=2147483647|mode=f|null|rc=8029000b SUPPORTED|h=2147483647|mode=10|opts|rc=8029000b SUPPORTED|h=2147483647|mode=10|null|rc=8029000b SUPPORTED|h=2147483647|mode=d000000a|opts|rc=8029000b SUPPORTED|h=2147483647|mode=d000000a|null|rc=8029000b SUPPORTED|h=2147483647|mode=ffffffffffffffff|opts|rc=8029000b SUPPORTED|h=2147483647|mode=ffffffffffffffff|null|rc=8029000b SUPPORTED|h=-1|mode=f|reservedPtr|rc=8029000b SUPPORTED|h=-1|mode=f|reserved|rc=8029000b PROBE DONE OPEN|rc=4e100100 Q|opts|mode=0|rc=8029001e Q|opts|mode=1|rc=00000001 Q|opts|mode=2|rc=8029001e Q|opts|mode=3|rc=8029001e Q|opts|mode=4|rc=80290016 Q|opts|mode=5|rc=8029001e Q|opts|mode=6|rc=8029001e Q|opts|mode=7|rc=80290016 Q|opts|mode=8|rc=80290016 Q|opts|mode=9|rc=8029001e Q|opts|mode=a|rc=8029001e Q|opts|mode=b|rc=8029001e Q|opts|mode=c|rc=80290016 Q|opts|mode=d|rc=80290016 Q|opts|mode=e|rc=80290016 Q|opts|mode=f|rc=00000001 Q|opts|mode=10|rc=80290016 Q|opts|mode=11|rc=80290016 Q|opts|mode=12|rc=8029001e Q|opts|mode=13|rc=80290016 Q|opts|mode=14|rc=8029001e Q|opts|mode=15|rc=8029001e Q|opts|mode=16|rc=8029001e Q|opts|mode=17|rc=8029001e Q|opts|mode=18|rc=8029001e Q|opts|mode=19|rc=8029001e Q|opts|mode=1a|rc=8029001e Q|opts|mode=1b|rc=8029001e Q|opts|mode=1c|rc=8029001e Q|opts|mode=1d|rc=8029001e Q|opts|mode=1e|rc=8029001e Q|opts|mode=1f|rc=8029001e Q|opts|mode=20|rc=8029001e Q|opts|mode=40|rc=8029001e Q|opts|mode=80|rc=8029001e Q|opts|mode=100|rc=8029001e Q|opts|mode=d000000a|rc=8029001e Q|opts|mode=d0000000|rc=8029001e Q|opts|mode=1000000000000001|rc=8029001e Q|opts|mode=8000000000000001|rc=8029001e Q|opts|mode=ffffffff|rc=8029001e Q|opts|mode=ffffffffffffffff|rc=8029001e Q|nullopts|mode=1|rc=00000001 Q|nullopts|mode=f|rc=00000001 Q|reservedptr|mode=1|rc=80290001 Q|reserved|mode=1|rc=80290001 Q|zeroopts|mode=1|rc=80290001 Q|zeroopts|mode=f|rc=80290001 Q|flip w0 bit0|mode=1|rc=80290001 Q|flip w1 bit0|mode=1|rc=80290001 Q|flip w2 bit0|mode=1|rc=80290001 Q|flip w3 bit0|mode=1|rc=00000001 Q|flip w4 bit0|mode=1|rc=80290001 Q|flip w5 bit0|mode=1|rc=80290001 Q|flip w6 bit0|mode=1|rc=80290001 Q|flip w7 bit0|mode=1|rc=80290001 Q|flip w8 bit0|mode=1|rc=80290001 Q|flip w9 bit0|mode=1|rc=80290001 Q|flip w10 bit0|mode=1|rc=80290001 Q|flip w11 bit0|mode=1|rc=80290001 Q|flip w12 bit0|mode=1|rc=80290001 Q|flip w13 bit0|mode=1|rc=80290001 Q|flip w14 bit0|mode=1|rc=80290001 Q|flip w15 bit0|mode=1|rc=80290001 Q|w0=0x00010000|mode=1|rc=80290001 Q|w0=0x00000001|mode=1|rc=80290001 Q|w0=0xffffffff|mode=1|rc=80290001 CLOSE|rc=00000000 Q-after-close|rc=8029000b PROBE DONE OPEN|rc=4e100100 Q|opts|mode=21|rc=8029001e Q|opts|mode=22|rc=8029001e Q|opts|mode=23|rc=8029001e Q|opts|mode=24|rc=8029001e Q|opts|mode=25|rc=8029001e Q|opts|mode=26|rc=8029001e Q|opts|mode=27|rc=8029001e Q|opts|mode=28|rc=8029001e Q|opts|mode=29|rc=8029001e Q|opts|mode=2a|rc=8029001e Q|opts|mode=2b|rc=8029001e Q|opts|mode=2c|rc=8029001e Q|opts|mode=2d|rc=8029001e Q|opts|mode=2e|rc=8029001e Q|opts|mode=2f|rc=8029001e Q|opts|mode=30|rc=8029001e Q|opts|mode=31|rc=8029001e Q|opts|mode=32|rc=8029001e Q|opts|mode=33|rc=8029001e Q|opts|mode=34|rc=8029001e Q|opts|mode=35|rc=8029001e Q|opts|mode=36|rc=8029001e Q|opts|mode=37|rc=8029001e Q|opts|mode=38|rc=8029001e Q|opts|mode=39|rc=8029001e Q|opts|mode=3a|rc=8029001e Q|opts|mode=3b|rc=8029001e Q|opts|mode=3c|rc=8029001e Q|opts|mode=3d|rc=8029001e Q|opts|mode=3e|rc=8029001e Q|opts|mode=3f|rc=8029001e Q|w3=1<<0|mode=1|rc=00000001 Q|w3=1<<1|mode=1|rc=00000001 Q|w3=1<<2|mode=1|rc=00000001 Q|w3=1<<3|mode=1|rc=00000001 Q|w3=1<<4|mode=1|rc=00000001 Q|w3=1<<5|mode=1|rc=00000001 Q|w3=1<<6|mode=1|rc=00000001 Q|w3=1<<7|mode=1|rc=00000001 Q|w3=1<<8|mode=1|rc=00000001 Q|w3=1<<9|mode=1|rc=00000001 Q|w3=1<<10|mode=1|rc=00000001 Q|w3=1<<11|mode=1|rc=00000001 Q|w3=1<<12|mode=1|rc=00000001 Q|w3=1<<13|mode=1|rc=00000001 Q|w3=1<<14|mode=1|rc=00000001 Q|w3=1<<15|mode=1|rc=00000001 Q|w3=1<<16|mode=1|rc=00000001 Q|w3=1<<17|mode=1|rc=00000001 Q|w3=1<<18|mode=1|rc=00000001 Q|w3=1<<19|mode=1|rc=00000001 Q|w3=1<<20|mode=1|rc=00000001 Q|w3=1<<21|mode=1|rc=00000001 Q|w3=1<<22|mode=1|rc=00000001 Q|w3=1<<23|mode=1|rc=00000001 Q|w3=1<<24|mode=1|rc=00000001 Q|w3=1<<25|mode=1|rc=00000001 Q|w3=1<<26|mode=1|rc=00000001 Q|w3=1<<27|mode=1|rc=00000001 Q|w3=1<<28|mode=1|rc=00000001 Q|w3=1<<29|mode=1|rc=00000001 Q|w3=1<<30|mode=1|rc=00000001 Q|w3=1<<31|mode=1|rc=00000001 Q|w3=all|mode=1|rc=00000001 Q|w3=1 mode f|mode=f|rc=00000001 Q|w3=1 mode 4|mode=4|rc=80290016 Q|undefined mode + zero opts|mode=2|rc=8029001e Q|unsupported mode + zero opts|mode=4|rc=80290016 Q|undefined mode + reserved|mode=2|rc=80290001 Q|unsupported mode + reservedptr|mode=4|rc=80290001 Q|undefined mode + null opts|mode=2|rc=8029001e Q|unsupported mode + null opts|mode=4|rc=80290016 Q|bad handle + everything bad|mode=2|rc=8029000b CLOSE|rc=00000000 Q-after-close|rc=8029000b PROBE DONE ``` </details>
klosixgaming-arch commented 2026-10-08 11:30:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by klosixgaming-arch on 2026-10-08T11:30:33Z.

Review: APPROVED


Good improvement to video output mode handling. This makes the validation more accurate with proper error codes for unsupported vs unknown modes, and adds comprehensive testing.

Strengths:

  • Proper distinction between UNSUPPORTED_OUTPUT_MODE (known but not supported) and UNKNOWN_OUTPUT_MODE (not defined by console)
  • Clean implementation of HasConfig method to check handle configuration state
  • Comprehensive test coverage including edge cases (invalid handles, reserved words, free word handling)
  • Good documentation in TechnicalDebt.md about the console's actual behavior

Technical notes:

  • The approach of validating output options with specific expected values is correct
  • Proper handling of the "free word" at index 3 that can have any value
  • Test cases properly verify all scenarios including mode-specific error codes

This will improve compatibility with titles that probe video output modes. Ready to merge.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5455867148 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1496#pullrequestreview-5455867148). Originally posted by [klosixgaming-arch](https://github.com/klosixgaming-arch) on 2026-10-08T11:30:33Z. **Review:** APPROVED --- Good improvement to video output mode handling. This makes the validation more accurate with proper error codes for unsupported vs unknown modes, and adds comprehensive testing. **Strengths:** - Proper distinction between UNSUPPORTED_OUTPUT_MODE (known but not supported) and UNKNOWN_OUTPUT_MODE (not defined by console) - Clean implementation of `HasConfig` method to check handle configuration state - Comprehensive test coverage including edge cases (invalid handles, reserved words, free word handling) - Good documentation in TechnicalDebt.md about the console's actual behavior **Technical notes:** - The approach of validating output options with specific expected values is correct - Proper handling of the "free word" at index 3 that can have any value - Test cases properly verify all scenarios including mode-specific error codes This will improve compatibility with titles that probe video output modes. Ready to merge.
adriadam10 commented 2026-10-09 23:52:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-09T23:52:53Z.


Checked the new guest_video_out_output_mode test (passes; fails without the change), video_out_flip_tests, and the error ordering (handle, reserved, mode, options) against your measured table. The only conflict with main was the TechnicalDebt entry (next to the new sceVideoOutGetResolutionStatus line); I rebased and kept both, tests pass after the rebase. Merging once CI is green on the rebased head.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6091262686 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1496#issuecomment-6091262686). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-09T23:52:53Z. --- Checked the new `guest_video_out_output_mode` test (passes; fails without the change), `video_out_flip_tests`, and the error ordering (handle, reserved, mode, options) against your measured table. The only conflict with `main` was the TechnicalDebt entry (next to the new `sceVideoOutGetResolutionStatus` line); I rebased and kept both, tests pass after the rebase. Merging once CI is green on the rebased head.
Sign in to join this conversation.
No reviewers
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!1496
No description provided.