fix(libSceAgc): accept a null base in sceAgcDcbSetBaseIndirectArgs #3239
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3239"
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 Tamalero on 2026-10-11T03:09:49Z.
What
sceAgcDcbSetBaseIndirectArgsthrowsnull or misaligned address 0x0when a title passes a null indirect base. Marvel's Guardians of the Galaxy (PPSA01748) stops on it during startup.Cause: the builder calls
CheckAddress, which rejects 0. The PM4 executor already acceptsSET_BASEwith address 0 (Pm4.cpp, opcode0x11: only alignment and address bits are checked) and stores it. An indirect draw that later reads from the base is checked there.Fix: a null base is accepted, the same as
sceAgcDcbSetIndexBufferalready does to unbind (if (address != 0) CheckAddress(...)). A non-null base is still checked for 8-byte alignment.Tested
Linux (CachyOS), GCC 16, Release, on current
main.agc_commandsandagc_initializationpass. NewtestIndirectBase:tools/check_conventions.pypasses.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T03:09:59Z.
Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.
Imported from boykopovar/AnyPS5. Originally posted by reyani-dev on 2026-10-11T06:14:57Z.
Windows run, since the PR has only Linux results. Windows 11 (10.0.26200), WinLibs GCC 15.2.0 r7, Release, RTX 4070 Laptop GPU (driver 616.92), head
8d96b449merged ontomain4be74d4f, withVK_LOADER_DRIVERS_DISABLE=*dzn*(#3255).agc_commands(includingtestIndirectBase) andagc_initializationpass.ctest -R "^agc_|video_out|^shader|recompiler": 357/357 pass.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T07:24:04Z.
Checked the null case against
Pm4.cpp(SET_BASE already accepts address 0), KytyPS5 (no address validation) and the prosper console golden;agc_commandspasses with the change and fails without it, libSceAgc ctest 20/20. Merging.