fix(libSceAgc): match sceAgcInit pointer ABI #5889
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5889"
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 NumberGuan on 2026-10-14T14:47:48Z.
What
PPSA99011 and PPSA99995 call
sceAgcInitwith a pointer and a 32-bit second argument. AnyPS5 currently reads the pointer value as the register-default version, which makes both titles throw during initialization. This change matches the two-argument ABI and retains the current default-table handling for values 0–13.A firmware 13.60 probe recorded in #4808 shows
sceAgcInit(&state, 8)returning 0 without modifying the buffer. The meaning and accepted range of the second argument beyond that observed call remain unverified; the technical-debt entry records this limit.Fixes #4808.
Tested
libstarget passed.agc_initializationandagc_commandspassed.tools/check_test_registration.py build,tools/check_conventions.py --base origin/main, andgit diff --checkpassed.tools/check_skips.py build/ctest.xml --job windowsexits 1 in this environment: the display has no 120 Hz mode, and Windows long paths are disabled. No PS5 or game runtime test was performed for this change.Checklist
main; no other open PR implements the same functionsImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T12:11:13Z.
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.
core/libs/prx/libSceAgc/tests/Commands.cppdocs/dev/debt/libSceAgc.mddocs/dev/debt/libSceAgc.mdcore/libs/prx/libSceAgc/tests/Commands.cppdocs/dev/debt/libSceAgc.mdcore/libs/prx/libSceAgc/tests/Commands.cppdocs/dev/debt/libSceAgc.mddocs/dev/debt/libSceAgc.mdImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-16T11:13:18Z.
Closing as superseded. #5163 already fixed #4808 on main:
sceAgcInitnow returns 0 for a pointer-shaped argument, matching the console probe in that issue, andsceAgcInit_0090(state, version)already models the two-argument form with pointer validation.This PR would bring back
SCE_AGC_ERROR_INVALID_ARGUMENTfor values >= 14, which is what #5163 removed. It also conflicts withmaininInit.cpp,tests/Commands.cppanddocs/dev/debt/libSceAgc.md.If PPSA99011 or PPSA99995 still stops at this call on current
main, please reopen #4808 or open a new PR rebased onmainwith the failing log.Pull request closed