feat(shader): serialize the split state of a recompile request #25576
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/25576"
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 Remi-Bon on 2026-11-22T09:37:39Z.
What
Requests for split table call parts carry a split state plan (
RecompileRequest::context.splitState).RequestSerializerrefused them, so the failure report of a refused part had noRecompileRequestto replay, and a dumped part request could not be loaded byagc_shader_replay. Serialization version 64 writes the plan after the subgroup flag (before the optional emulated-barycentrics flag), and failure reports now always carry the request. Older versions read an empty plan.Note: #23244 and #23811 also move the format to version 64; whichever lands second renumbers.
Tested
Windows 11 Pro 26300, RX 9070.
request_serializer: plan round trip, truncation of the plan, version 63 bytes read an empty plan, legacy conversions go through version 63.agc_shader_memory: legacy fixtures strip the empty plan.ctest --test-dir build -R "request_serializer|split_table|shader_memory" -VwithANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,VK_LOADER_DEBUG=layer, validation layer 1.4.363:main0e31514b2dand this branch both pass 9/9, the loader inserts the layer, nowas not found, noVUID-in either log.0x120aed7f00was dumped and replayed offline withagc_shader_replay --prepare.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T10:03:04Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the review evidence supports merging.
What I ran
Reviewed head
c67183079b398ea18f9329d07a1ad9bd3a9e88f1using the prepared diff and the pinnedrepo_read.pyreader. No build or tests were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The full text of
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppwas excluded because it was too large; its changed hunks were reviewed indiff.patch. Build and test results, GPU behavior, and replay behavior described in the PR are author-reported and were not run here. No claims are made about uninspected code outside the targeted serializer, replay, and split-state references.Files read:
core/shader/recompiler/ControlFlow/include/ControlFlow/RequestSerializer.hpp,core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp, andcore/shader/recompiler/Recompiler.cpp, plus the prepared review description, commits, manifest, and diff. Files reviewed per manifest: 5; full text read: 3.core/shader/recompiler/tests/RequestSerializerTests.cppandcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppfull texts were not read; only the latter was excluded fromreview/files/.To get this to a good state
Nothing is required.