fix(libkernel,agc): unblock RetroArch Windows select and 8_8 UINT #5999

Merged
mazen320 merged 1 commit from upstream-pr/5999 into main 2026-10-18 16:53:14 +00:00
mazen320 commented 2026-10-14 18:45:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-14T18:45:15Z.


What

Two independent Windows bring-up blockers affected the local RetroArch PPSA99169 dump. Clearing the regular-file select failure exposed the AGC format failure.

  1. Windows select on regular files: main already polls pipes on Windows through HostPoll, but selecting a disk file (FD 5 early in the local RetroArch startup) threw neither a socket nor a pipe. Add HostFileReady: FILE_TYPE_DISK is always ready for the requested read/write bits, matching the FreeBSD disk semantics already documented for Linux poll. Non-file, non-pipe, non-socket descriptors still throw.
  2. AGC COLOR_8_8 + UINT: after clearing select, local menu startup creates an 8_8 color target with number type UINT (format 3, number type 4). DecodeColorFormat case 3 previously handled only UNORM/SNORM. UINT now maps to VK_FORMAT_R8G8_UINT with the component-swap mapping used by the existing 8 / 8_8_8_8 UINT paths. New uint8x2TargetTests cover it.

Linux HostPoll is unchanged (#ifndef _WIN32 continues to use host poll). AGC decoding is shared, and the new graphics unit test exercises it on both hosts.

Title evidence and reproducibility

The screenshots below come from the local Ozone dump on this host. Its exact local build identity is not recorded here. This run reached both failures before the changes and reached the Ozone menu and libretro content afterward.

Independent Windows review used the catalog release with build identity fd8f648f5b51…, which ships the XMB menu driver. That copy reached neither failure on main and showed no regression with this PR. It therefore does not reproduce the local Ozone before/after claim. The portable confirmation is the reviewer's unit tests and negative controls; the title screenshots are evidence for the local dump.

After screenshots use a solid black backdrop, without desktop wallpaper. Asset gallery (personal gist, not in-repo): gist.

Before → after on the local Ozone dump

Step Before After
1 select on FD 5 aborts Disk FD treated as ready
2 AGC format 3 / UINT aborts (black window) Ozone Main Menu, approximately 80–97 FPS

Select crash → menu

01 before select crash

06 select before/after

AGC format crash → Ozone menu

02 before AGC format crash

07 AGC before/after

03 after menu

04 after desktop FPS

Content follow-up on this host

With the same HostFileReady + COLOR_8_8 UINT build, stock libretro .so cores load through the title's in-process ELF loader, rather than relinker .prx cores.

Core Content Result
FCEUmm checker.nes Visible NES tiles
mGBA ucity.gbc Title → Select Slot → Generate Map → Jan 1950 playfield

09 FCEUmm checker

10 mGBA uCity title

11 mGBA Select Slot

12 mGBA playfield

More cores on the same stack

Core Content Result
Genesis Plus GX checker.sms Visible hatch pattern
snes9x checker.sfc Solid green present

13 Genesis SMS

14 snes9x

Tested

Windows 11, RTX 3080, WinLibs MinGW-w64 GCC 15.2.0; Ubuntu under WSL2, GCC 13.3.0. Release, BUILD_TESTING=ON.

  • Local title run to Ozone Main Menu; agc_driver_graphics, including uint8x2TargetTests.

  • Content: FCEUmm + checker.nes; mGBA + ucity.gbc through Generate Map, using APS5_PAD_INPUT_FILE for pad injection. Screenshots are in the personal gist above.

  • Diff against main: select/HostFileReady + COLOR_8_8 UINT + unit tests + debt.

  • Following the Windows review, tip a214a4e2c requires both disk-file readiness bits, uses a per-process temporary filename, and removes the three explanatory comments. Rebuilt libkernel + guest_select_tests; ctest -R '^guest_select$' --repeat until-fail:3 passed 3/3. Validation note.

  • Revalidated 2026-10-15 at exact head a214a4e2cb2a6b09d24d0a4acc529b22c71d19e4: built that revision's complete libc and libkernel CMake targets plus original GuestSelect.cpp and GuestSelectWait.cpp. Both Windows tests passed three consecutive runs (6/6). This focused check does not rerun the Agc graphics or title validation.

Not tested: macOS or console hardware. Full PR CI needs a collaborator's manual Build run; automatic successful metadata checks are not full build/test coverage.

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 under Silent stubs in their library's technical debt file
  • 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
  • Unblocks: PPSA99169 RetroArch (#4793) — Ozone menu + libretro content on Windows
  • GPUs tested: NVIDIA GeForce RTX 3080, Windows 11 (title run + agc_driver_graphics)
  • AI-assisted: yes

Note

Continues closed #5795 (GitHub refused reopening after a force-push while closed). Same branch/topic; tip rebased cleanly onto current main.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4862792112 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5999). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-14T18:45:15Z. --- ### What Two independent Windows bring-up blockers affected the local RetroArch PPSA99169 dump. Clearing the regular-file `select` failure exposed the AGC format failure. 1. **Windows `select` on regular files:** main already polls pipes on Windows through `HostPoll`, but selecting a disk file (FD 5 early in the local RetroArch startup) threw `neither a socket nor a pipe`. Add `HostFileReady`: `FILE_TYPE_DISK` is always ready for the requested read/write bits, matching the FreeBSD disk semantics already documented for Linux `poll`. Non-file, non-pipe, non-socket descriptors still throw. 2. **AGC `COLOR_8_8` + UINT:** after clearing `select`, local menu startup creates an `8_8` color target with number type UINT (`format 3`, `number type 4`). `DecodeColorFormat` case 3 previously handled only UNORM/SNORM. UINT now maps to `VK_FORMAT_R8G8_UINT` with the component-swap mapping used by the existing 8 / 8_8_8_8 UINT paths. New `uint8x2TargetTests` cover it. Linux `HostPoll` is unchanged (`#ifndef _WIN32` continues to use host `poll`). AGC decoding is shared, and the new graphics unit test exercises it on both hosts. ### Title evidence and reproducibility The screenshots below come from the local **Ozone** dump on this host. Its exact local build identity is not recorded here. This run reached both failures before the changes and reached the Ozone menu and libretro content afterward. [Independent Windows review](https://github.com/boykopovar/AnyPS5/pull/5999#issuecomment-6188389061) used the catalog release with build identity `fd8f648f5b51…`, which ships the **XMB** menu driver. That copy reached neither failure on main and showed no regression with this PR. It therefore does not reproduce the local Ozone before/after claim. The portable confirmation is the reviewer's unit tests and negative controls; the title screenshots are evidence for the local dump. After screenshots use a solid black backdrop, without desktop wallpaper. Asset gallery (personal gist, not in-repo): [gist](https://gist.github.com/mazen320/3911ee2028c238c8b2ed6744f7792fdb). ### Before → after on the local Ozone dump | Step | Before | After | | --- | --- | --- | | 1 | `select` on FD 5 aborts | Disk FD treated as ready | | 2 | AGC `format 3 / UINT` aborts (black window) | Ozone Main Menu, approximately 80–97 FPS | **Select crash → menu** ![01 before select crash](https://gist.githubusercontent.com/mazen320/3911ee2028c238c8b2ed6744f7792fdb/raw/58bc0051571da2ffcffefee2237d58ee3b0c45e7/01_before_select_crash.png) ![06 select before/after](https://gist.githubusercontent.com/mazen320/3911ee2028c238c8b2ed6744f7792fdb/raw/58bc0051571da2ffcffefee2237d58ee3b0c45e7/06_compare_select_before_after.png) **AGC format crash → Ozone menu** ![02 before AGC format crash](https://gist.githubusercontent.com/mazen320/3911ee2028c238c8b2ed6744f7792fdb/raw/58bc0051571da2ffcffefee2237d58ee3b0c45e7/02_before_agc_format_crash.png) ![07 AGC before/after](https://gist.githubusercontent.com/mazen320/3911ee2028c238c8b2ed6744f7792fdb/raw/58bc0051571da2ffcffefee2237d58ee3b0c45e7/07_compare_agc_before_after.png) ![03 after menu](https://gist.githubusercontent.com/mazen320/3911ee2028c238c8b2ed6744f7792fdb/raw/58bc0051571da2ffcffefee2237d58ee3b0c45e7/03_after_menu_client.png) ![04 after desktop FPS](https://gist.githubusercontent.com/mazen320/3911ee2028c238c8b2ed6744f7792fdb/raw/58bc0051571da2ffcffefee2237d58ee3b0c45e7/04_after_desktop_fps.png) ### Content follow-up on this host With the same HostFileReady + COLOR_8_8 UINT build, stock libretro `.so` cores load through the title's in-process ELF loader, rather than relinker `.prx` cores. | Core | Content | Result | | --- | --- | --- | | FCEUmm | `checker.nes` | Visible NES tiles | | mGBA | `ucity.gbc` | Title → Select Slot → Generate Map → Jan 1950 playfield | ![09 FCEUmm checker](https://gist.githubusercontent.com/mazen320/3911ee2028c238c8b2ed6744f7792fdb/raw/58bc0051571da2ffcffefee2237d58ee3b0c45e7/09_fceumm_checker.png) ![10 mGBA uCity title](https://gist.githubusercontent.com/mazen320/3911ee2028c238c8b2ed6744f7792fdb/raw/58bc0051571da2ffcffefee2237d58ee3b0c45e7/10_mgba_ucity_title.png) ![11 mGBA Select Slot](https://gist.githubusercontent.com/mazen320/3911ee2028c238c8b2ed6744f7792fdb/raw/58bc0051571da2ffcffefee2237d58ee3b0c45e7/11_mgba_ucity_select_slot.png) ![12 mGBA playfield](https://gist.githubusercontent.com/mazen320/3911ee2028c238c8b2ed6744f7792fdb/raw/58bc0051571da2ffcffefee2237d58ee3b0c45e7/12_mgba_ucity_playfield.png) ### More cores on the same stack | Core | Content | Result | | --- | --- | --- | | Genesis Plus GX | `checker.sms` | Visible hatch pattern | | snes9x | `checker.sfc` | Solid green present | ![13 Genesis SMS](https://gist.githubusercontent.com/mazen320/3911ee2028c238c8b2ed6744f7792fdb/raw/ed8daa2736e7a7f3b3f611b6b81e24a199042d5e/13_genesis_sms_checker.png) ![14 snes9x](https://gist.githubusercontent.com/mazen320/3911ee2028c238c8b2ed6744f7792fdb/raw/ed8daa2736e7a7f3b3f611b6b81e24a199042d5e/14_snes9x_checker.png) ### Tested Windows 11, RTX 3080, WinLibs MinGW-w64 GCC 15.2.0; Ubuntu under WSL2, GCC 13.3.0. Release, `BUILD_TESTING=ON`. - Local title run to Ozone Main Menu; `agc_driver_graphics`, including `uint8x2TargetTests`. - Content: FCEUmm + `checker.nes`; mGBA + `ucity.gbc` through Generate Map, using `APS5_PAD_INPUT_FILE` for pad injection. Screenshots are in the personal gist above. - Diff against main: select/HostFileReady + COLOR_8_8 UINT + unit tests + debt. - Following the Windows review, tip `a214a4e2c` requires both disk-file readiness bits, uses a per-process temporary filename, and removes the three explanatory comments. Rebuilt `libkernel` + `guest_select_tests`; `ctest -R '^guest_select$' --repeat until-fail:3` passed 3/3. [Validation note](https://github.com/boykopovar/AnyPS5/pull/5999#issuecomment-6188493411). - Revalidated 2026-10-15 at exact head `a214a4e2cb2a6b09d24d0a4acc529b22c71d19e4`: built that revision's complete `libc` and `libkernel` CMake targets plus original `GuestSelect.cpp` and `GuestSelectWait.cpp`. Both Windows tests passed three consecutive runs (6/6). This focused check does not rerun the Agc graphics or title validation. Not tested: macOS or console hardware. Full PR CI needs a collaborator's manual Build run; automatic successful metadata checks are not full build/test coverage. ### 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](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [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] Unblocks: PPSA99169 RetroArch (#4793) — Ozone menu + libretro content on Windows - [x] GPUs tested: NVIDIA GeForce RTX 3080, Windows 11 (title run + `agc_driver_graphics`) - [x] AI-assisted: yes ### Note Continues closed #5795 (GitHub refused reopening after a force-push while closed). Same branch/topic; tip rebased cleanly onto current `main`.
mazen320 commented 2026-10-14 18:45:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-14T18:45:31Z.


Replaces closed #5795 (GitHub blocks reopen after force-push). Tip ea74ddd10 = cherry-pick of the RetroArch select + 8_8 UINT fix onto current main (post-#5163).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6175745291 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5999#issuecomment-6175745291). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-14T18:45:31Z. --- Replaces closed #5795 (GitHub blocks reopen after force-push). Tip `ea74ddd10` = cherry-pick of the RetroArch select + 8_8 UINT fix onto current `main` (post-#5163).
mazen320 commented 2026-10-14 18:45:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-14T18:45:41Z.


Closing — keeping #5795 instead of a replacement.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6175748519 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5999#issuecomment-6175748519). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-14T18:45:41Z. --- Closing — keeping #5795 instead of a replacement.
milescoviello commented 2026-10-15 04:05:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-15T04:05:06Z.


A second title for the 8_8 UINT part: Doom 3 BFG (PPSA99313, catalog release) on Linux (Ubuntu 24.04, GCC 13.3, Release, RTX 4070 Ti), main a077a88df plus #6213, which it needs to get past start-up.

  • Without the 8_8 UINT line it stops on its first draw, 3 s in: AGC graphics: unsupported color format 3 number type 4 component swap 0.
  • With the same one-line change as this PR (VK_FORMAT_R8G8_UINT with the 8_8 mapping), the draw goes through. The title then runs to its own Sys_Error: Could not load default font "Arial_Narrow", which is expected since the catalog build ships no game data.

I only ran the 8_8 UINT change, not the RetroArch select part.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6184142001 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5999#issuecomment-6184142001). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-15T04:05:06Z. --- A second title for the 8_8 UINT part: Doom 3 BFG (PPSA99313, catalog release) on Linux (Ubuntu 24.04, GCC 13.3, Release, RTX 4070 Ti), `main` a077a88df plus #6213, which it needs to get past start-up. - Without the 8_8 UINT line it stops on its first draw, 3 s in: `AGC graphics: unsupported color format 3 number type 4 component swap 0`. - With the same one-line change as this PR (`VK_FORMAT_R8G8_UINT` with the 8_8 mapping), the draw goes through. The title then runs to its own `Sys_Error: Could not load default font "Arial_Narrow"`, which is expected since the catalog build ships no game data. I only ran the 8_8 UINT change, not the RetroArch `select` part. AI-assisted: yes
mazen320 commented 2026-10-15 06:39:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-15T06:39:08Z.


Live Windows verification (PPSA99169)

Re-ran RetroArch on Windows with a freshly built + NID-patched libkernel containing this PR's HostFileReady select fix (Agc/VideoOut/AgcDriver left on a known-good prior pair so LoadLibrary stays clean).

  • Boots to a live window: title RetroArch | FPS: ~80 (3700+)
  • No neither a socket nor a pipe / select abort
  • No COLOR_8_8 / UINT format throw on this stack
  • Present dumps run/frame_*.bmp at 960x540 with mean luminance ~60 (non-black menu path)

So the libkernel half is confirmed on hardware (RTX 3080). The Agc COLOR_8_8 UINT half remains covered by the Graphics unit test in this PR; a full AgcDriver rebuild from this commit alone is the next clean deploy check (a WIP AgcDriver tree currently breaks libSceAgc LoadLibrary 127 and is out of scope here).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6186122825 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5999#issuecomment-6186122825). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-15T06:39:08Z. --- ### Live Windows verification (PPSA99169) Re-ran RetroArch on Windows with a freshly built + NID-patched `libkernel` containing this PR's `HostFileReady` select fix (Agc/VideoOut/AgcDriver left on a known-good prior pair so LoadLibrary stays clean). - Boots to a live window: title `RetroArch | FPS: ~80 (3700+)` - No `neither a socket nor a pipe` / select abort - No COLOR_8_8 / UINT format throw on this stack - Present dumps `run/frame_*.bmp` at 960x540 with mean luminance ~60 (non-black menu path) So the libkernel half is confirmed on hardware (RTX 3080). The Agc `COLOR_8_8` UINT half remains covered by the Graphics unit test in this PR; a full AgcDriver rebuild from this commit alone is the next clean deploy check (a WIP AgcDriver tree currently breaks `libSceAgc` LoadLibrary 127 and is out of scope here).
mazen320 commented 2026-10-15 06:52:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-15T06:52:09Z.


Test follow-up

Pushed test(libkernel): cover Windows select on regular files — opens a temp disk file and selects it on Windows so HostFileReady cannot regress to the old neither-socket-nor-pipe throw.

Local: ctest -R '^guest_select$' passed on this machine after the change.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6186306647 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5999#issuecomment-6186306647). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-15T06:52:09Z. --- ### Test follow-up Pushed `test(libkernel): cover Windows select on regular files` — opens a temp disk file and `select`s it on Windows so `HostFileReady` cannot regress to the old neither-socket-nor-pipe throw. Local: `ctest -R '^guest_select$'` **passed** on this machine after the change.
mazen320 commented 2026-10-15 07:00:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-15T07:00:04Z.


Live title evidence (PPSA99169 RetroArch)

On Windows with this PR’s NID-patched libkernel (HostFileReady) plus the pre-main Agc stack:

  1. RetroArch boots and holds ~80 FPS in the XMB menu (previously needed HostFileReady for select on regular files).
  2. Pad inject (APS5_PAD_INPUT_FILE) navigated into Load Core → FCEUmm.
  3. The title’s in-process ELF loader opened the original app0/cores/fceumm_libretro.so (not a converted .prx) six times; FCEUmm metadata + savestates/FCEUmm/ were touched.
  4. After that, Agc logged repeated 256×224 StorageTexture creates (NES framebuffer size) and the window settled at ~120 FPS / 24k+ frames while still titled RetroArch.

So this PR is load-bearing for the title path that actually runs cores. Relinker conversion of cores is a separate question (#5927); the console path uses the title loader on the stock .so.

Not claiming a playable ROM yet — smoke.nes has not shown up in sceKernelOpen logs; next step is content load + post-core frame dumps.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6186420694 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5999#issuecomment-6186420694). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-15T07:00:04Z. --- ### Live title evidence (PPSA99169 RetroArch) On Windows with this PR’s NID-patched `libkernel` (HostFileReady) plus the pre-main Agc stack: 1. RetroArch boots and holds ~80 FPS in the XMB menu (previously needed HostFileReady for select on regular files). 2. Pad inject (`APS5_PAD_INPUT_FILE`) navigated into **Load Core → FCEUmm**. 3. The title’s **in-process ELF loader** opened the original `app0/cores/fceumm_libretro.so` (not a converted `.prx`) six times; FCEUmm metadata + `savestates/FCEUmm/` were touched. 4. After that, Agc logged repeated **256×224** `StorageTexture` creates (NES framebuffer size) and the window settled at **~120 FPS / 24k+ frames** while still titled `RetroArch`. So this PR is load-bearing for the title path that actually runs cores. Relinker conversion of cores is a separate question (#5927); the console path uses the title loader on the stock `.so`. Not claiming a playable ROM yet — `smoke.nes` has not shown up in `sceKernelOpen` logs; next step is content load + post-core frame dumps.
mazen320 commented 2026-10-15 07:08:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-15T07:08:47Z.


Breakthrough: RetroArch loaded FCEUmm + ROM on this stack

Unattended run of PPSA99169 with this PR’s HostFileReady libkernel (NID-patched) + pre-main Agc libs:

  1. Wrote /app0/test-run.txt (required — without it the title deletes args.txt as a stale test file) and /app0/args.txt:
    -L
    /app0/cores/fceumm_libretro.so
    /app0/content/smoke.nes
    --max-frames=600
    --max-frames-ss
    --max-frames-ss-path=/app0/screenshots/smoke.png
    
  2. Trace: argv extras from /app0/args.txt = 6
  3. retroarch.log: loaded stock fceumm_libretro.so via the title ELF loader, then Loading content file: "/app0/content/smoke.nes", geometry 256×224 @ 60.10 FPS
  4. Agc created repeated 256×224 storage textures; GPU frame dumps mean luma ~86 (not the empty XMB ~46)
  5. RetroArch wrote /app0/screenshots/smoke.png after ~9s of content (Content ran for a total of: 00 hours, 00 minutes, 09 seconds)

HostFileReady is on the path that keeps this title alive through menu + core/content bring-up. No claim that every core works — this is one converted-free .so + one NES ROM on Windows.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6186557724 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5999#issuecomment-6186557724). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-15T07:08:47Z. --- ### Breakthrough: RetroArch loaded FCEUmm + ROM on this stack Unattended run of PPSA99169 with this PR’s HostFileReady `libkernel` (NID-patched) + pre-main Agc libs: 1. Wrote `/app0/test-run.txt` (required — without it the title deletes `args.txt` as a stale test file) and `/app0/args.txt`: ``` -L /app0/cores/fceumm_libretro.so /app0/content/smoke.nes --max-frames=600 --max-frames-ss --max-frames-ss-path=/app0/screenshots/smoke.png ``` 2. Trace: `argv extras from /app0/args.txt = 6` 3. `retroarch.log`: loaded stock `fceumm_libretro.so` via the title ELF loader, then `Loading content file: "/app0/content/smoke.nes"`, geometry **256×224 @ 60.10 FPS** 4. Agc created repeated **256×224** storage textures; GPU frame dumps mean luma ~86 (not the empty XMB ~46) 5. RetroArch wrote `/app0/screenshots/smoke.png` after ~9s of content (`Content ran for a total of: 00 hours, 00 minutes, 09 seconds`) HostFileReady is on the path that keeps this title alive through menu + core/content bring-up. No claim that every core works — this is one converted-free `.so` + one NES ROM on Windows.
mazen320 commented 2026-10-15 07:08:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-15T07:08:51Z.


Note on the screenshot: smoke.png and the GPU frame dumps are a flat mid-gray (mean luma ~86), not a recognizable NES scene. So this is core+ROM load and a timed run, not proven pixel-correct presentation yet. Next poke is RGB565 / present path for the 256×224 core framebuffer.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6186558771 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5999#issuecomment-6186558771). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-15T07:08:51Z. --- Note on the screenshot: `smoke.png` and the GPU frame dumps are a flat mid-gray (mean luma ~86), not a recognizable NES scene. So this is **core+ROM load and a timed run**, not proven pixel-correct presentation yet. Next poke is RGB565 / present path for the 256×224 core framebuffer.
mazen320 commented 2026-10-15 07:11:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-15T07:11:02Z.


Pixel proof (follow-up)

smoke.nes had an empty CHR bank — the flat gray screenshot was the ROM, not a present failure.

Built a tiny checker.nes (nonzero CHR tile + nametable fill). Unattended run with /app0/test-run.txt + args.txt produced /app0/screenshots/checker.png showing a visible tile grid (dark squares on light background) from FCEUmm at 256×224.

So on this HostFileReady stack: title ELF loader → stock fceumm_libretro.so → ROM → on-screen NES framebuffer.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6186595217 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5999#issuecomment-6186595217). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-15T07:11:02Z. --- ### Pixel proof (follow-up) `smoke.nes` had an empty CHR bank — the flat gray screenshot was the ROM, not a present failure. Built a tiny `checker.nes` (nonzero CHR tile + nametable fill). Unattended run with `/app0/test-run.txt` + `args.txt` produced `/app0/screenshots/checker.png` showing a **visible tile grid** (dark squares on light background) from FCEUmm at 256×224. So on this HostFileReady stack: title ELF loader → stock `fceumm_libretro.so` → ROM → **on-screen NES framebuffer**.
mazen320 commented 2026-10-15 07:18:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-15T07:18:43Z.


Second title/core: mGBA + µCity (homebrew GBC)

  • Core: stock mgba_libretro.so
  • Content: µCity v1.3 ucity.gbc (homebrew)
  • Log: geometry 160×144 @ 59.73 FPS; content loaded; screenshot /app0/screenshots/ucity.png
  • Same HostFileReady stack + test-run.txt / args.txt recipe as FCEUmm

So this is not a one-core fluke.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6186720988 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5999#issuecomment-6186720988). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-15T07:18:43Z. --- ### Second title/core: mGBA + µCity (homebrew GBC) - Core: stock `mgba_libretro.so` - Content: [µCity v1.3](https://github.com/AntonioND/ucity/releases/tag/v1.3) `ucity.gbc` (homebrew) - Log: geometry **160×144 @ 59.73 FPS**; content loaded; screenshot `/app0/screenshots/ucity.png` - Same HostFileReady stack + `test-run.txt` / `args.txt` recipe as FCEUmm So this is not a one-core fluke.
mazen320 commented 2026-10-15 07:22:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-15T07:22:49Z.


Interaction proof (mGBA + µCity)

Pad inject advanced past the title screen: ucity-play.png shows the Select Slot menu (cursor on 1. Empty, Page 1 / 4). So input + core + present are all live on this stack, not just a static boot frame.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6186786004 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5999#issuecomment-6186786004). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-15T07:22:49Z. --- ### Interaction proof (mGBA + µCity) Pad inject advanced past the title screen: `ucity-play.png` shows the **Select Slot** menu (cursor on `1. Empty`, `Page 1 / 4`). So input + core + present are all live on this stack, not just a static boot frame.
mazen320 commented 2026-10-15 07:57:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-15T07:57:51Z.


Content follow-up (screenshots)

With #5999 HostFileReady + COLOR_8_8 UINT on Windows, RetroArch loads stock libretro cores and homebrew content:

Core Content Result
FCEUmm checker.nes Visible NES tiles
mGBA ucity.gbc Title → Select Slot → Generate Map → Jan 1950 playfield

Gallery: https://gist.github.com/mazen320/232ab464aa28adb78c9f9757294f3eaf

Windows 11, RTX 3080; title in-process ELF loader (not relinker .prx cores). Pad inject via APS5_PAD_INPUT_FILE for the µCity path.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6187352134 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5999#issuecomment-6187352134). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-15T07:57:51Z. --- ### Content follow-up (screenshots) With #5999 HostFileReady + COLOR_8_8 UINT on Windows, RetroArch loads stock libretro cores and homebrew content: | Core | Content | Result | |------|---------|--------| | FCEUmm | checker.nes | Visible NES tiles | | mGBA | ucity.gbc | Title → Select Slot → Generate Map → Jan 1950 playfield | Gallery: https://gist.github.com/mazen320/232ab464aa28adb78c9f9757294f3eaf - https://gist.githubusercontent.com/mazen320/232ab464aa28adb78c9f9757294f3eaf/raw/09_fceumm_checker.png - https://gist.githubusercontent.com/mazen320/232ab464aa28adb78c9f9757294f3eaf/raw/10_mgba_ucity_title.png - https://gist.githubusercontent.com/mazen320/232ab464aa28adb78c9f9757294f3eaf/raw/11_mgba_ucity_select_slot.png - https://gist.githubusercontent.com/mazen320/232ab464aa28adb78c9f9757294f3eaf/raw/12_mgba_ucity_playfield.png Windows 11, RTX 3080; title in-process ELF loader (not relinker `.prx` cores). Pad inject via `APS5_PAD_INPUT_FILE` for the µCity path.
mazen320 commented 2026-10-15 08:09:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-15T08:09:21Z.


Overlap (#6235)

Bot flagged tests/Graphics.cpp with #6235 (fix(shader): preserve raw fragment exports for integer attachments). That PR changes shader export / integer-attachment paths; this PR only adds uint8x2TargetTests for COLOR_8_8 UINT. Same file, different topic — no shared production change and no Depends on. Agree #6235 can merge first if the test file conflicts; rebase is mechanical.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6187538529 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5999#issuecomment-6187538529). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-15T08:09:21Z. --- ### Overlap (#6235) Bot flagged `tests/Graphics.cpp` with #6235 (`fix(shader): preserve raw fragment exports for integer attachments`). That PR changes shader export / integer-attachment paths; this PR only adds `uint8x2TargetTests` for `COLOR_8_8` UINT. Same file, different topic — no shared production change and no Depends on. Agree #6235 can merge first if the test file conflicts; rebase is mechanical.
mazen320 commented 2026-10-15 08:25:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-15T08:25:43Z.


More cores (same HostFileReady stack)

While soak/poll idle: stock cores + tiny homebrew ROMs via title ELF loader.

Core Content Geometry Result
Genesis Plus GX checker.sms (homebrew) 256×192 Visible orange/black hatch + magenta corner — 13
snes9x checker.sfc (minimal LoROM) 256×224 Solid present green (PPU/display path live) — 14

Already proven earlier: FCEUmm+checker.nes tiles; mGBA+µCity through playfield.

Gallery: https://gist.github.com/mazen320/3911ee2028c238c8b2ed6744f7792fdb

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6187809700 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5999#issuecomment-6187809700). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-15T08:25:43Z. --- ### More cores (same HostFileReady stack) While soak/poll idle: stock cores + tiny homebrew ROMs via title ELF loader. | Core | Content | Geometry | Result | |------|---------|----------|--------| | Genesis Plus GX | `checker.sms` (homebrew) | 256×192 | Visible orange/black hatch + magenta corner — [13](https://gist.githubusercontent.com/mazen320/3911ee2028c238c8b2ed6744f7792fdb/raw/ed8daa2736e7a7f3b3f611b6b81e24a199042d5e/13_genesis_sms_checker.png) | | snes9x | `checker.sfc` (minimal LoROM) | 256×224 | Solid present green (PPU/display path live) — [14](https://gist.githubusercontent.com/mazen320/3911ee2028c238c8b2ed6744f7792fdb/raw/ed8daa2736e7a7f3b3f611b6b81e24a199042d5e/14_snes9x_checker.png) | Already proven earlier: FCEUmm+checker.nes tiles; mGBA+µCity through playfield. Gallery: https://gist.github.com/mazen320/3911ee2028c238c8b2ed6744f7792fdb
screamm commented 2026-10-15 08:59:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-15T08:59:22Z.


Windows run of head 4a054f683 alone, merged onto main d92a8dad3 (clean merge; it also merges cleanly onto the newer db81992c5, not built).

  • Host: Windows 11 Pro 26220, Ryzen 7 5700X, RTX 4070 (driver 596.21), WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release.
  • Build: the full build and libs pass with 0 errors and no warnings in the rebuilt files (Socket.cpp, State.cpp and both test files).
  • Tests, --repeat until-fail:3:
    • guest_select: 3/3.
    • the 143 tests registered in core/libs/prx/libkernel/CMakeLists.txt (including guest_poll, guest_select_wait and guest_socket_*): 429/429 runs.
    • agc_driver_graphics (with the new uint8x2TargetTests) and 11 colour-target and format tests (agc_driver_uint8x4_color_target, srgb8, packed_unorm, color1555 and others): 36/36 runs.
  • Negative controls: the new tests, run against main's libraries, fail with the two messages from the description:
    • guest_select_tests.exe with main's libkernel.prx: what(): select on descriptor 3 (neither a socket nor a pipe) not implemented
    • agc_driver_graphics_tests.exe with main's libSceAgcDriver.prx: AGC graphics: unsupported color format 3 number type 4 component swap 0
  • Non-GPU suite (ctest -j8 --timeout 120 -E '^agc_driver_|^video_out_flip'): 810/814. All four were load-related and none involves select or the AGC formats:
    • hardware_oracle_compare, guest_file_lock_process and guest_pthread_start timed out, and audio_out2_timing exited 0xc0000409, while the host was busy.
    • Rerun alone, audio_out2_timing and guest_pthread_start pass.
    • guest_file_lock_process passed 3/3 in the libkernel run above with the same build.
    • hardware_oracle_compare also times out on other branches here under load.
  • tools/check_conventions.py and git diff --check pass.

Title: RetroArch PPSA99169, catalog release (its trace.txt reports build identity: fd8f648f5b51…), relinked with --executable picker/picker.bin by each side's own relinker. Runs were 60 s in a window (ANYPS5_REQUIRE_DISPLAY=1), with input from APS5_PAD_INPUT_FILE.

main d92a8dad3 this PR merged onto it
no input Frontend Picker renders, RetroArch | FPS: 46.09 (1628) not run
Cross in the picker picker: retroarch -> LoadExec(/app0/eboot.bin, "--ps5-mode=retroarch"), RetroArch 1.22.2 XMB Main Menu, RetroArch | FPS: 48.34 (656) at 60 s, no stop line same, RetroArch | FPS: 40.97 (1086), no stop line
Cross, then Load Core (100 s) core loader: ready symbols=192 relocations=961580 …, [INFO] [Core] Geometry: 320x240, Aspect: 1.333, FPS: 119.88 …, menu keeps rendering, no stop line same

With this copy of the title, main never reaches either stop. No run logs select on descriptor … (neither a socket nor a pipe) or unsupported color format 3 number type 4, in stdout, in trace.txt or in retroarch.log. This release ships only the XMB menu driver: setting menu_driver = "ozone" gives Couldn't find any menu driver named "ozone" and a fallback to XMB. So I could not reproduce the before state (FD 5 select abort, then the 8_8 UINT abort before the Ozone menu). The title runs show no regression, and the frame dumps show the same XMB menu on both sides. They do not confirm the fix. If your copy of PPSA99169 differs from the catalog release (Ozone menu, a different build identity), the exact build would let others reproduce it.

Minor points:

  • The new guest_select block accepts ready >= 1 and either bit. HostFileReady sets both bits for a disk file in both sets (FreeBSD's vop_stdpoll does the same), so the test could require both.
  • The fixed temp file aps5_select_disk_ready.txt stays behind when the test aborts.
  • 3 added comment lines (1 in Socket.cpp, 2 in the test) are explanations. CONVENTIONS.md allows comments only for technical debt.

Verdict: on Windows both changes are confirmed at the unit level. The new tests pass, and fail on main's libraries with the messages the PR describes. The libkernel and AGC colour-target sets and the non-GPU suite pass, apart from load timeouts. The catalog copy of PPSA99169 does not reach either code path on main, so the title claim is not confirmed here; that title shows no regression.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6188389061 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5999#issuecomment-6188389061). Originally posted by [screamm](https://github.com/screamm) on 2026-10-15T08:59:22Z. --- Windows run of head `4a054f683` alone, merged onto `main` `d92a8dad3` (clean merge; it also merges cleanly onto the newer `db81992c5`, not built). - Host: Windows 11 Pro 26220, Ryzen 7 5700X, RTX 4070 (driver 596.21), WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release. - Build: the full build and `libs` pass with 0 errors and no warnings in the rebuilt files (`Socket.cpp`, `State.cpp` and both test files). - Tests, `--repeat until-fail:3`: - `guest_select`: 3/3. - the 143 tests registered in `core/libs/prx/libkernel/CMakeLists.txt` (including `guest_poll`, `guest_select_wait` and `guest_socket_*`): 429/429 runs. - `agc_driver_graphics` (with the new `uint8x2TargetTests`) and 11 colour-target and format tests (`agc_driver_uint8x4_color_target`, `srgb8`, `packed_unorm`, `color1555` and others): 36/36 runs. - Negative controls: the new tests, run against `main`'s libraries, fail with the two messages from the description: - `guest_select_tests.exe` with `main`'s `libkernel.prx`: `what(): select on descriptor 3 (neither a socket nor a pipe) not implemented` - `agc_driver_graphics_tests.exe` with `main`'s `libSceAgcDriver.prx`: `AGC graphics: unsupported color format 3 number type 4 component swap 0` - Non-GPU suite (`ctest -j8 --timeout 120 -E '^agc_driver_|^video_out_flip'`): 810/814. All four were load-related and none involves `select` or the AGC formats: - `hardware_oracle_compare`, `guest_file_lock_process` and `guest_pthread_start` timed out, and `audio_out2_timing` exited `0xc0000409`, while the host was busy. - Rerun alone, `audio_out2_timing` and `guest_pthread_start` pass. - `guest_file_lock_process` passed 3/3 in the libkernel run above with the same build. - `hardware_oracle_compare` also times out on other branches here under load. - `tools/check_conventions.py` and `git diff --check` pass. Title: RetroArch PPSA99169, catalog release (its `trace.txt` reports `build identity: fd8f648f5b51…`), relinked with `--executable picker/picker.bin` by each side's own relinker. Runs were 60 s in a window (`ANYPS5_REQUIRE_DISPLAY=1`), with input from `APS5_PAD_INPUT_FILE`. | | `main` `d92a8dad3` | this PR merged onto it | |---|---|---| | no input | Frontend Picker renders, `RetroArch \| FPS: 46.09 (1628)` | not run | | Cross in the picker | `picker: retroarch -> LoadExec(/app0/eboot.bin, "--ps5-mode=retroarch")`, RetroArch 1.22.2 XMB Main Menu, `RetroArch \| FPS: 48.34 (656)` at 60 s, no stop line | same, `RetroArch \| FPS: 40.97 (1086)`, no stop line | | Cross, then Load Core (100 s) | `core loader: ready symbols=192 relocations=961580 …`, `[INFO] [Core] Geometry: 320x240, Aspect: 1.333, FPS: 119.88 …`, menu keeps rendering, no stop line | same | With this copy of the title, `main` never reaches either stop. No run logs `select on descriptor … (neither a socket nor a pipe)` or `unsupported color format 3 number type 4`, in stdout, in `trace.txt` or in `retroarch.log`. This release ships only the XMB menu driver: setting `menu_driver = "ozone"` gives `Couldn't find any menu driver named "ozone"` and a fallback to XMB. So I could not reproduce the before state (FD 5 select abort, then the 8_8 UINT abort before the Ozone menu). The title runs show no regression, and the frame dumps show the same XMB menu on both sides. They do not confirm the fix. If your copy of PPSA99169 differs from the catalog release (Ozone menu, a different build identity), the exact build would let others reproduce it. Minor points: - The new `guest_select` block accepts `ready >= 1` and either bit. `HostFileReady` sets both bits for a disk file in both sets (FreeBSD's `vop_stdpoll` does the same), so the test could require both. - The fixed temp file `aps5_select_disk_ready.txt` stays behind when the test aborts. - 3 added comment lines (1 in `Socket.cpp`, 2 in the test) are explanations. CONVENTIONS.md allows comments only for technical debt. Verdict: on Windows both changes are confirmed at the unit level. The new tests pass, and fail on `main`'s libraries with the messages the PR describes. The libkernel and AGC colour-target sets and the non-GPU suite pass, apart from load timeouts. The catalog copy of PPSA99169 does not reach either code path on `main`, so the title claim is not confirmed here; that title shows no regression. AI-assisted (Claude Code).
mazen320 commented 2026-10-15 09:05:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-15T09:05:19Z.


Thanks @screamm — addressed the three minors on tip a214a4e2c:

  1. guest_select now requires both ready bits (read.Has(file) && write.Has(file)).
  2. Temp path is per-process (aps5_select_disk_ready_<pid>.txt) and cleared before create, so an abort does not leave a fixed colliding name.
  3. Removed the three explanatory comments (Socket.cpp + GuestSelect).

Verified here before pushing: rebuilt libkernel + guest_select_tests and ctest -R '^guest_select$' --repeat until-fail:3 → 3/3 passed.

On the catalog RetroArch copy not hitting either stop: agreed — that is a title/build difference. Our dump reaches HostFileReady (regular-file select during bring-up) and the COLOR_8_8 UINT path; yours staying on XMB without those stops is consistent with a different build identity / menu driver. Unit + negative-control evidence you ran is the portable confirmation; title screenshots remain dump-specific evidence, not a claim that every catalog copy hits the same abort sequence.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6188493411 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5999#issuecomment-6188493411). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-15T09:05:19Z. --- Thanks @screamm — addressed the three minors on tip `a214a4e2c`: 1. `guest_select` now requires **both** ready bits (`read.Has(file) && write.Has(file)`). 2. Temp path is per-process (`aps5_select_disk_ready_<pid>.txt`) and cleared before create, so an abort does not leave a fixed colliding name. 3. Removed the three explanatory comments (Socket.cpp + GuestSelect). **Verified here before pushing:** rebuilt `libkernel` + `guest_select_tests` and `ctest -R '^guest_select$' --repeat until-fail:3` → **3/3 passed**. On the catalog RetroArch copy not hitting either stop: agreed — that is a title/build difference. Our dump reaches HostFileReady (regular-file select during bring-up) and the COLOR_8_8 UINT path; yours staying on XMB without those stops is consistent with a different `build identity` / menu driver. Unit + negative-control evidence you ran is the portable confirmation; title screenshots remain dump-specific evidence, not a claim that every catalog copy hits the same abort sequence.
mazen320 commented 2026-10-15 09:33:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-15T09:33:31Z.


Thanks @milescoviello — good second-title signal for the COLOR_8_8 UINT half. Doom 3 BFG hitting the same format 3 / number type 4 stop without the mapping, and clearing it with the one-line VK_FORMAT_R8G8_UINT change, matches what the Graphics unit test covers here. Noted that you only exercised the Agc side (not the RetroArch select half).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6188997019 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5999#issuecomment-6188997019). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-15T09:33:31Z. --- Thanks @milescoviello — good second-title signal for the COLOR_8_8 UINT half. Doom 3 BFG hitting the same `format 3 / number type 4` stop without the mapping, and clearing it with the one-line `VK_FORMAT_R8G8_UINT` change, matches what the Graphics unit test covers here. Noted that you only exercised the Agc side (not the RetroArch `select` half).
github-actions[bot] commented 2026-10-15 12:13:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T12:13:03Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 7002 docs/dev/debt/libSceAgcDriver.md L68

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 1191 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
PR 1395 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 2434 docs/dev/debt/libSceAgcDriver.md
PR 4040 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 4448 docs/dev/debt/libSceAgcDriver.md
PR 4650 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 5058 docs/dev/debt/libSceAgcDriver.md
PR 5372 docs/dev/debt/libSceAgcDriver.md
PR 5441 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 5499 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 5500 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 5925 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6188 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6194 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6222 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6223 docs/dev/debt/libSceAgcDriver.md
PR 6235 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6273 docs/dev/debt/libSceAgcDriver.md
PR 6297 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6300 docs/dev/debt/libSceAgcDriver.md
PR 6320 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6412 docs/dev/debt/libSceAgcDriver.md
PR 6472 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6481 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6529 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6535 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6548 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6549 docs/dev/debt/libSceAgcDriver.md
PR 6563 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6741 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6786 docs/dev/debt/libSceAgcDriver.md
PR 6808 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6867 docs/dev/debt/libSceAgcDriver.md
PR 6868 docs/dev/debt/libSceAgcDriver.md
PR 6972 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6977 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7390 docs/dev/debt/libSceAgcDriver.md
PR 7426 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7505 docs/dev/debt/libSceAgcDriver.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6191765261 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5999#issuecomment-6191765261). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T12:13:03Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | [PR 7002](https://www.github.com/boykopovar/AnyPS5/pull/7002) | `docs/dev/debt/libSceAgcDriver.md` [L68](https://github.com/boykopovar/AnyPS5/blob/aff1f7190dbbe2449630335dc38962a5b048f24b/docs/dev/debt/libSceAgcDriver.md#L68) | | | Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 1191](https://www.github.com/boykopovar/AnyPS5/pull/1191) | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp` | | [PR 1395](https://www.github.com/boykopovar/AnyPS5/pull/1395) | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 2434](https://www.github.com/boykopovar/AnyPS5/pull/2434) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 4040](https://www.github.com/boykopovar/AnyPS5/pull/4040) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 4448](https://www.github.com/boykopovar/AnyPS5/pull/4448) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 4650](https://www.github.com/boykopovar/AnyPS5/pull/4650) | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 5058](https://www.github.com/boykopovar/AnyPS5/pull/5058) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 5372](https://www.github.com/boykopovar/AnyPS5/pull/5372) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 5441](https://www.github.com/boykopovar/AnyPS5/pull/5441) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 5499](https://www.github.com/boykopovar/AnyPS5/pull/5499) | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 5500](https://www.github.com/boykopovar/AnyPS5/pull/5500) | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6188](https://www.github.com/boykopovar/AnyPS5/pull/6188) | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6194](https://www.github.com/boykopovar/AnyPS5/pull/6194) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6222](https://www.github.com/boykopovar/AnyPS5/pull/6222) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6223](https://www.github.com/boykopovar/AnyPS5/pull/6223) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6235](https://www.github.com/boykopovar/AnyPS5/pull/6235) | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6273](https://www.github.com/boykopovar/AnyPS5/pull/6273) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6297](https://www.github.com/boykopovar/AnyPS5/pull/6297) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6300](https://www.github.com/boykopovar/AnyPS5/pull/6300) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6320](https://www.github.com/boykopovar/AnyPS5/pull/6320) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6412](https://www.github.com/boykopovar/AnyPS5/pull/6412) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6472](https://www.github.com/boykopovar/AnyPS5/pull/6472) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6481](https://www.github.com/boykopovar/AnyPS5/pull/6481) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6529](https://www.github.com/boykopovar/AnyPS5/pull/6529) | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6535](https://www.github.com/boykopovar/AnyPS5/pull/6535) | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6548](https://www.github.com/boykopovar/AnyPS5/pull/6548) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6549](https://www.github.com/boykopovar/AnyPS5/pull/6549) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6563](https://www.github.com/boykopovar/AnyPS5/pull/6563) | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6741](https://www.github.com/boykopovar/AnyPS5/pull/6741) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6786](https://www.github.com/boykopovar/AnyPS5/pull/6786) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6808](https://www.github.com/boykopovar/AnyPS5/pull/6808) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6867](https://www.github.com/boykopovar/AnyPS5/pull/6867) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6868](https://www.github.com/boykopovar/AnyPS5/pull/6868) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6972](https://www.github.com/boykopovar/AnyPS5/pull/6972) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6977](https://www.github.com/boykopovar/AnyPS5/pull/6977) | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7390](https://www.github.com/boykopovar/AnyPS5/pull/7390) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7426](https://www.github.com/boykopovar/AnyPS5/pull/7426) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7505](https://www.github.com/boykopovar/AnyPS5/pull/7505) | `docs/dev/debt/libSceAgcDriver.md` |
screamm commented 2026-10-15 13:47:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-15T13:47:53Z.


Re-test on Windows 11 Pro 26220, NVIDIA RTX 4070 (596.21), MinGW GCC 15.2, PR head a214a4e2c merged on main 3ee537191:

  • What changed since 4a054f683: only Socket.cpp (one comment removed, no code change) and GuestSelect.cpp (both ready bits required, per-process temp file name removed before create, comments removed). That covers all three minors.
  • Merge was clean, full build and libs pass with 0 warnings.
  • Tests with --repeat until-fail:3: guest_select 3/3. guest_poll and guest_select_wait also pass. The libkernel set (143 tests): 142 passed every repeat. In one repeat guest_select_wait aborted ("twenty 1 ms selects did not stay close to their deadlines"), under -j8 load; that test uses select without descriptors, and it fails the same way on plain main here (3 of 25 runs on main, 4 of 25 with the PR, 0 of 25 on a second round each). The AGC colour-target set (agc_driver_graphics with the uint8x2 test and 7 colour-target tests): 24/24 runs.
  • Negative controls with the new tests kept: Socket.cpp reverted to main gives select on descriptor 3 (neither a socket nor a pipe) not implemented; State.cpp reverted gives AGC graphics: unsupported color format 3 number type 4 component swap 0. A HostFileReady that reports only the readable bit now fails guest_select (the previous || would have accepted it).
  • Non-GPU suite: 806/825 on the first pass with the host loaded, 12 more passed when rerun alone. Seven still time out serially under the current host load: conventions_function_bodies, debt_split, hardware_oracle_compare, guest_none_relocations, tls_function_coverage_register_address_loads, windows_diagnostic_fixture_isolation and elf_header; none involves select or the AGC formats.
  • tools/check_conventions.py --base origin/main and git diff origin/main --check pass.
  • RetroArch PPSA99169 (catalog copy): the picker renders, Cross starts RetroArch 1.22.2 and it shows the XMB menu for 60 s with no stop line. As before, this copy does not reach either the select or the 8_8 UINT path on main, so this run shows no regression and does not confirm the title claim.

No concerns with the code.

Written with Claude Code assistance.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6193631331 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5999#issuecomment-6193631331). Originally posted by [screamm](https://github.com/screamm) on 2026-10-15T13:47:53Z. --- Re-test on Windows 11 Pro 26220, NVIDIA RTX 4070 (596.21), MinGW GCC 15.2, PR head `a214a4e2c` merged on main `3ee537191`: - What changed since `4a054f683`: only `Socket.cpp` (one comment removed, no code change) and `GuestSelect.cpp` (both ready bits required, per-process temp file name removed before create, comments removed). That covers all three minors. - Merge was clean, full build and `libs` pass with 0 warnings. - Tests with `--repeat until-fail:3`: `guest_select` 3/3. `guest_poll` and `guest_select_wait` also pass. The libkernel set (143 tests): 142 passed every repeat. In one repeat `guest_select_wait` aborted ("twenty 1 ms selects did not stay close to their deadlines"), under `-j8` load; that test uses `select` without descriptors, and it fails the same way on plain main here (3 of 25 runs on main, 4 of 25 with the PR, 0 of 25 on a second round each). The AGC colour-target set (`agc_driver_graphics` with the `uint8x2` test and 7 colour-target tests): 24/24 runs. - Negative controls with the new tests kept: `Socket.cpp` reverted to main gives `select on descriptor 3 (neither a socket nor a pipe) not implemented`; `State.cpp` reverted gives `AGC graphics: unsupported color format 3 number type 4 component swap 0`. A `HostFileReady` that reports only the readable bit now fails `guest_select` (the previous `||` would have accepted it). - Non-GPU suite: 806/825 on the first pass with the host loaded, 12 more passed when rerun alone. Seven still time out serially under the current host load: `conventions_function_bodies`, `debt_split`, `hardware_oracle_compare`, `guest_none_relocations`, `tls_function_coverage_register_address_loads`, `windows_diagnostic_fixture_isolation` and `elf_header`; none involves select or the AGC formats. - `tools/check_conventions.py --base origin/main` and `git diff origin/main --check` pass. - RetroArch PPSA99169 (catalog copy): the picker renders, Cross starts RetroArch 1.22.2 and it shows the XMB menu for 60 s with no stop line. As before, this copy does not reach either the `select` or the 8_8 UINT path on main, so this run shows no regression and does not confirm the title claim. No concerns with the code. Written with Claude Code assistance.
milescoviello commented 2026-10-16 03:13:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-16T03:13:12Z.


Another title that needs the 8_8 UINT part: Doom 3 BFG (PPSA99313) from the homebrew catalog. @nicolasfalesy first saw its stop on Intel Arc (https://github.com/boykopovar/AnyPS5/pull/6213#issuecomment-6206823042). It reaches the color target only once #6213 gets it past guest allocation is not registered. Linux, RTX 4070 Ti, NVIDIA 595.99, 60 s runs with pad input, two runs each:

Build Result
main 5d9dcc42d stops at 0 s: guest allocation is not registered (2 of 2)
+ #6213 stops at 3 s: AGC graphics: unsupported color format 3 number type 4 component swap 0 (2 of 2)
+ #6213 + this PR (a214a4e2c) that line is gone. It draws on to its own Sys_Error: Could not load default font "Arial_Narrow" and exits 0 (2 of 2), because no game data was installed

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6207219154 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5999#issuecomment-6207219154). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-16T03:13:12Z. --- Another title that needs the 8_8 UINT part: Doom 3 BFG (PPSA99313) from the homebrew catalog. @nicolasfalesy first saw its stop on Intel Arc (https://github.com/boykopovar/AnyPS5/pull/6213#issuecomment-6206823042). It reaches the color target only once #6213 gets it past `guest allocation is not registered`. Linux, RTX 4070 Ti, NVIDIA 595.99, 60 s runs with pad input, two runs each: | Build | Result | |---|---| | `main` 5d9dcc42d | stops at 0 s: `guest allocation is not registered` (2 of 2) | | + #6213 | stops at 3 s: `AGC graphics: unsupported color format 3 number type 4 component swap 0` (2 of 2) | | + #6213 + this PR (`a214a4e2c`) | that line is gone. It draws on to its own `Sys_Error: Could not load default font "Arial_Narrow"` and exits 0 (2 of 2), because no game data was installed | AI-assisted: yes
adriadam10 commented 2026-10-16 20:50:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-16T20:50:50Z.


Checked the diff against main: HostFileReady only accepts FILE_TYPE_DISK and every other descriptor type still throws; COLOR_8_8 + UINT maps to R8G8_UINT with the same swap mapping as UNORM/SNORM. agc_driver_graphics fails without the change and passes with it, guest_select and guest_select_wait pass, and the Windows runs by @screamm and the Doom 3 BFG run by @milescoviello cover the two halves on other hosts. Merging once the Windows build is green.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6224449540 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5999#issuecomment-6224449540). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-16T20:50:50Z. --- Checked the diff against main: `HostFileReady` only accepts `FILE_TYPE_DISK` and every other descriptor type still throws; `COLOR_8_8` + UINT maps to `R8G8_UINT` with the same swap mapping as UNORM/SNORM. `agc_driver_graphics` fails without the change and passes with it, `guest_select` and `guest_select_wait` pass, and the Windows runs by @screamm and the Doom 3 BFG run by @milescoviello cover the two halves on other hosts. Merging once the Windows build is green.
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!5999
No description provided.