feat(agc-driver): replay a request as a prepared artifact with --prepare #4325
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4325"
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 gravelas on 2026-10-12T06:12:14Z.
What
agc_shader_replaycompiles a request throughRecompile, the per-draw path. Shaders the driver prepares at registration go throughPrepareShaderinstead, and that produces a different, larger artifact. So neither a preparation failure nor the size of a prepared artifact can be reproduced from a dumped request.On Goat Simulator 3 (PPSA04159) the gap is large. Its registered compute shaders are prepared at registration, and the replay tool compiled them to about a third of what the driver actually builds:
Recompile(replay today)PrepareShader(--prepare)0x200e3700000x200dc20000--preparecompiles each request withPrepareShader, the way the driver does at registration, and prints the artifact's SPIR-V size, or the first line of the failure. The usage line lists the option.Tested
BUILD_TESTING=ON.agc_shader_replayisEXCLUDE_FROM_ALL, so CI does not build it: built it explicitly (cmake --build build --target agc_shader_replay).agc_shader_replay --prepareon 24 registration requests dumped from Goat Simulator 3 (ANYPS5_NO_SHADER_CACHE=1): all prepare, in 0.4 to 3.5 s each; plain replay of the same files still recompiles as before. The table above comes from these runs.tools/check_conventions.py --base origin/mainpasses.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-12T09:14:38Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libSceAgcDriver/tools/ShaderReplay.cppL155