feat(agc): let agc_shader_replay write a request's code words for other disassemblers #456
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/456"
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 oneandonlydean on 2026-10-03T13:52:01Z.
What
agc_shader_replay --codewrites the request's shader code as<request name>.codein the working directory: the raw little-endian code words, ready for another disassembler, for examplellvm-mc -triple amdgcn -mcpu=gfx1030 --disassemble.--asmprints only the first word of each instruction, so literals and the second dword of VOP3, MUBUF or MIMG encodings were not visible without decoding them by hand.The file is written the way
--spvwrites its output. If it cannot be written, the request is reported as failed ("could not write ...") instead of being skipped silently.Tested
agc_shader_replay(it isEXCLUDE_FROM_ALL, so CI does not build it) and the full tree withBUILD_TESTING=ON.shader_500696500.req, 4200 code words) with--code: the 16800-byte file disassembles withllvm-mc -mcpu=gfx1030, and its first instructions match the raw words--asmprints (s_inst_prefetch 0x3,s_lshl_b32 vcc_lo, s14, 2,s_buffer_load_dword, ...). In a read-only directory the request fails with "could not write shader_500696500.req.code".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)