feat(agc): write the measured sceAgcDcbSetIndexIndirectArgs packet #4392
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4392"
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 soufian3hm on 2026-10-12T08:54:41Z.
What
sceAgcDcbSetIndexIndirectArgsandsceAgcDcbSetIndexIndirectArgsGetSizethrewNotImplemented. They now write the 4-dword INDEX_ATTRIBUTES_INDIRECT (0x91) packet that the console'slibSceAgc.sprxwrites, and the size function returns 16.0xc0029100Sources:
GetSize= 0x10. Vector c shows the base is 64-bit (its high half lands in dword 2) and the masks:0x1111111122222222, 0x3333333344444444givesc0029100 22222220 11111111 00004444.(cb, uint64 address, uint32 offset)and the same masks; SharpProspero declares(cb, indexAddr, uint)and size 0x10.PM4_PFP_INDEX_ATTRIBUTES_INDIRECT:indirect_mode(bit 0) and 3 reserved bits underattribute_base_lo,attribute_base_hi, 16-bitattribute_index.The previous stub's
(buf, dataOffsetInBytes)signature had no source; the measurement contradicts it.The console masks the base and index silently and the measured vectors are pinned word for word, so this follows the measurement rather than throwing on low base bits as
sceAgcDcbSetIndexBufferdoes.PPSA07286 imports both NIDs (
0o3VDdtA6nM,AFIh8SQkYlQ), as listed in #2591. The driver has no handler for opcode 0x91, so a submitted packet still throws (opcode is not known in the reference); this is recorded in TechnicalDebt, as for ATOMIC_GDS in #3756.Library progress: 3018 -> 3020 of 3487.
Tested
Windows 11, WinLibs GCC 15.2.0 r7, Release.
agc_commandspins the three console vectors word for word, the returned address, the four-word cursor advance, no write outside the packet, failure without writes on an exhausted buffer, failure on a null buffer, and the size.agc_commandsandagc_initializationpass;python3 tools/check_conventions.py --base origin/mainpasses. Not tested with a title.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)Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-13T00:21:54Z.
Closing: no title is shown calling
sceAgcDcbSetIndexIndirectArgs(PPSA07286 imports it, nothing was run), and one that did would still stop on submit, since the driver has no handler for opcode 0x91. The measured vectors are the right basis; reopen with the title ID and the log line when one stops here on main.Pull request closed