feat(agc): emit indexed indirect draws #40
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/40"
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 Pacuka on 2026-09-27T17:43:20Z.
Summary
This implements
sceAgcDcbDrawIndexIndirectandsceAgcDcbDrawIndexIndirectMulti. They were stubs that aborted with "not implemented".They follow the existing non-indexed
sceAgcDcbDrawIndirect/DrawIndirectMulti:DrawIndexIndirectemitsDRAW_INDEX_INDIRECT(0x25): data offset, base vertex / start instance SGPR locations, draw initiator (5 dwords, matchingGetSize= 20).DrawIndexIndirectMultiemitsDRAW_INDEX_INDIRECT_MULTI(0x38): the same fields, plus the draw-index location / count-indirect control word, count, count address and stride (10 dwords, matchingGetSize= 40). The stride must be at least 20, the size of an indexed record.The packet layout matches what
resolveIndirectDrawin #5 reads for 0x25/0x38.Testing
testIndexedIndirectDrawsinagc_command_tests: it checks the exact packets of both functions, and that a misaligned offset, a stride below 20, and a count address given for a direct count are all rejected without writing packets. The wholeagc_command_testsrun passes on Linux.libs;ctestpasses 36/36.sceAgcDcbDrawIndexIndirectfrom its menu. With this change it gets past that call and keeps rendering; it used to abort there.Overlap check: #24 changes
sceAgcDcbDrawIndexin the same file, in a different hunk.🤖 Generated with Claude Code