perf(agc): select split table call groups on the GPU between rounds #25848
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/25848"
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-22T19:23:46Z.
What
A split table call dispatch runs its rounds from the CPU. Each round reads every lane's target back, waits for the GPU and records one dispatch per callee with its workgroup runs. A dispatch whose lanes loop over many callees pays one GPU round trip per round. In PPSA01317, a 512-round dispatch took 1.7 s.
This change lets the GPU select the workgroups of the next rounds:
Graphics/shaders/SplitSelect.compreads the lanes' targets from the split state buffer.vkCmdDispatchIndirectover its list. The split state header gains a list flag (word 5) and a list offset (word 6).SplitSliceGroupmaps the launched workgroup through the list when the flag is set.APS5_SPLIT_CPU_ROUNDSkeeps every round on the CPU.APS5_SPLIT_MAX_ROUNDSsets the round limit (default 4096, as before).Tested
ctest --test-dir build -R "split|spirv|recompiler|dispatch|continuation": 103/103 passed.ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,VK_LOADER_DEBUG=layerand the validation layer from Vulkan SDK 1.4.363.1.Insert instance layer "VK_LAYER_KHRONOS_validation", has nowas not found but was requested by env var VK_INSTANCE_LAYERS, and contains noVUID-.agc_driver_split_table_call_rungains a GPU-round mode of the continued loop caller, at wave32 and wave64:main; notools/trace_digest.pycomparison tomainis claimed.mainalone does not reach the scene's split dispatches.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-22T19:34:11Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the implementation and targeted test source support merging.
What I ran
Reviewed head
342c2189864dea6dcde047bb160691b91dd3f4e0against the prepared diff. I readdescription.md,commits.md,manifest.json, anddiff.patch, plus the changed implementation and test ranges listed below throughrepo_read.py. No build or tests were run; the Windows build, 103/103 tests, and measurements in the description are author-reported.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppwas excluded from the prepared full-text files because it was too large; I inspected its changed ranges withrepo_read.py. The other 10 changed files marked included inmanifest.jsonwere read at their changed sections, not in full. I did not run the reported tests or verify the performance measurements on hardware.To get this to a good state
Nothing is required.