fix(agc): accept indirect register placeholders without an address #899
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/899"
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 alfalfa-star on 2026-10-06T14:20:32Z.
What
Accept
SET_*_REG_INDIRECTplaceholders without an address.PPSA14632 (LEGO Horizon Adventures, Unreal Engine) reserves
sceAgcDcbSet{Cx,Sh,Uc}RegistersIndirectpackets with a null register list and 0 registers, and fills them in later with thesceAgcSet*RegIndirectPatchSetAddress/SetNumRegisterssetters. Onmainthe writers thrownull or misaligned address 0x0(seen assceAgcDcbSetCxRegistersIndirect: null or misaligned address 0x0). A null list is now accepted when it holds no registers, which reads nothing; a null list with registers still throws.Tested
RegisterCommands: each of the three writers emits the placeholder packet, rejects a null list with a count without touching the buffer, and the patch setters then fill in the address and count. Full ctest: 359/359.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