fix(libkernel,agc): unblock RetroArch Windows select and 8_8 UINT #5795
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5795"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-14T11:17:58Z.
What
Two independent Windows bring-up blockers for RetroArch (PPSA99169), fixed together because each only surfaces after the previous one is cleared:
Windows
selecton regular files —HostPollonly accepted pipes, so aselecton a disk file (FD 5 early in RetroArch startup) threwneither a socket nor a pipe/ earliernot a libSceNet socket. AddHostFileReady:FILE_TYPE_DISKis always ready for the requested read/write bits, matching FreeBSD disk semantics already documented for Linuxpoll. Non-file, non-pipe, non-socket descriptors still throw.AGC
COLOR_8_8+ UINT — once select no longer aborts, menu startup creates an8_8color target with number type UINT (format 3,number type 4).DecodeColorFormatcase 3 only handled UNORM/SNORM; UINT now maps toVK_FORMAT_R8G8_UINTwith the same component-swap mapping as the existing 8 / 8_8_8_8 UINT paths. Covered by newuint8x2TargetTests.Linux
HostPollis unchanged (#ifndef _WIN32→ hostpoll). The AGC decode path is shared; the new unit test exercises it on both hosts.After screenshots use a solid black backdrop (no desktop wallpaper).
Asset gallery (not in-repo): gist
Before → after
selecton FD 5 abortsformat 3 / UINTaborts (black window)Before — select abort
Before — AGC 8_8 UINT (select fixed alone)
Compare — select
Compare — AGC
After — Ozone menu client
After — window on black (title-bar FPS)
Diff summary
Tested
Windows 11, RTX 3080 (driver as installed), WinLibs MinGW-w64 GCC 15.2.0; Ubuntu under WSL2, GCC 13.3.0. Release,
BUILD_TESTING=ON. Branch head79223be9bon currentmain.ctest --test-dir build-win -R agc_driver_graphics --output-on-failure: Passed (~4.2 s), including newuint8x2TargetTests.cmake --build build-linux --target agc_driver_graphics_teststhenctest --test-dir build-linux -R '^agc_driver_graphics$' --output-on-failure: Passed. Select change is Windows-only (#elseofHostPoll); Linux still uses hostpoll.app.exewith rebuilt/patchedlibkernel+libSceAgcDriver. Negative controls: select-only or AGC-only each still abort with the corresponding message above. With both fixes, Ozone Main Menu stays interactive; title bar FPS ~80–97 idle. After screenshots are the window on a solid black backdrop.git diff --checkon the branch.Not tested: loading a libretro core / game content, macOS, console hardware. Full PR CI needs a collaborator's manual Build run.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)agc_driver_graphics)Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-14T14:14:11Z.
Parking while #5163 stays open for merge (first-contributor 1-PR limit). Branch
fix/retroarch-windows-select-and-8_8-uintis unchanged; will reopen after #5163 merges.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-14T14:48:34Z.
Thank you for your contribution! Authors with no pull requests merged into
maincan have 1 open pull request at a time, authors with at least 1 merged can have 20, and from 20 merged there is no limit. This PR has been automatically closed and labeled "open PR limit" because that limit was reached. This is not a judgment of the quality of your changes: reopen it once one of your open pull requests is merged or closed.Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-14T18:44:19Z.
Rebased onto latest
mainafter #5163 merged (force-pushedea74ddd10).Changes (unchanged intent)
HostFileReady;hosts{&HostPoll}so RetroArch is not blocked on the null HostReady stub.R8G8_UINTmapping + Graphics regression test; debt docs updated.Double-check
Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-14T18:45:18Z.
Cannot reopen after force-push (state cannot be changed. The branch was force-pushed or recreated.). Replacement PR opened from the rebased tip
ea74ddd10— see the newest open PR with the same title from this branch.Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-14T18:50:49Z.
Superseded by https://github.com/boykopovar/AnyPS5/pull/5999 (same change, rebased onto current main — GitHub blocked reopen here after the earlier force-push).
Pull request closed