perf(recompiler): run each wave of a multi-wave compute workgroup as its own host workgroup behind a runtime switch #23244
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/23244"
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 muhmuhkuh on 2026-11-18T20:54:49Z.
What
On a host whose subgroups are 32 lanes wide, a wave64 compute workgroup of more than one wave runs today with two lanes per invocation. A workgroup of exactly one wave already runs spanned: one host workgroup of 64 invocations is the guest wave. This change lets a workgroup of W waves (64·W threads, W ≥ 2) run as W host workgroups of one wave each, when nothing in the program connects its waves.
SpirvTarget::splitWaveGroupsandspannedWaves,SplitWaveCountreturns W when the program is compute, is not a split table call part, has no partial workgroups, no workgroup memory (sharedMemoryBytes), no scratch, no function LDS, LDS lock, LDS/GDS/shared 64-bit atomics or function scratch, and no instruction with shared-memory access,Barrier,Sendmsg,DataAppend,DataConsume,DataOrderedCountorDataOrderedSwap; otherwise 1. With W > 1 the module is the spanned form withLocalSize64: the guest workgroup id in x is the host id divided by W, and the guest local invocation index is the host index plus 64·(host id mod W). A program that reads the number of workgroups throwsSpannedWaveUnsupportedafter emission, so it falls back to its current form. The result carriesgroupMultiplier= W.APS5_SPLIT_WAVE_GROUPS(runtime switch, also throughAPS5_AB) requests the form for direct dispatches of wave64 compute programs whose workgroup holds a multiple of 64 threads above 64, with no LDS, no scratch and no partial groups (SplitWaveCandidate); an indirect dispatch never requests it, andrecordDispatchrefuses a multiplier with GPU-read counts. The dispatch issues W times the workgroups in x; above the device limit it dispatches in chunks oflimit / Wguest workgroups through the workgroup offsets. The staged build of the window-select change also covers this form: while its pipeline is not built the dispatch runs the current form.groupMultiplier), cache key and dispatch key include the flag.tests/execution/SplitWaveGroups.cpp(agc_driver_split_wave_groups_forms,agc_driver_split_wave_groups_dispatch);RequestSerializerTestscovers version 66 and the read of version 65.OpUnreachableas an exit (APS5_SPANNED_UNREACHABLE_STAYS); without it a candidate whose guarded image write leaves anOpUnreachableinside a per-invocation guard, such as PPSA02015's compute program 0xc280575600, falls back to two lanes instead of this form.Correctness for every input
Let the guest workgroup have T = 64·W threads, W ≥ 2, and let the host run W·X workgroups of 64 invocations for a dispatch of X guest workgroups in x.
LocalSize64x1x1 (WorkgroupLocalSize), so a host workgroup is exactly one guest wave. GuestLocalInvocationIdis computed from L by the existing spanned path (L mod sizeX, L div sizeX mod sizeY, ...), guestGlobalInvocationIdfrom that and the divided workgroup id, and the thread-group-size word from L div 64 and T: all equal the unsplit values. The guest wave is L div 64 = h mod W; its 64 lanes are exactly the 64 invocations of one host workgroup, which is the existing single-wave spanned case (two host subgroups of 32 joined by the spanned exchange), so ballots, lane reads and EXEC behave as before.DispatchThreadLimit) are excluded; indirect dispatches never ask for the split and a pipeline with a multiplier refuses GPU-read counts.limit / W, chunk c covers guest groups [c·⌊limit/W⌋, ...) with offset = first guest group and host count = guest count · W ≤ limit; inside the chunk h div W is the guest index relative to the offset, so 1. holds per chunk.Without the flag
splitWavesis 1, every new branch is skipped and the module is unchanged.Tested
Windows 11 Pro 10.0.26200, NVIDIA GeForce RTX 3080 Ti, driver 610.88.
mainand on this branch withANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1andVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, from the same machine and GPU, 206 recompiler, AGC driver, frame capture and shader cache tests:main(6286d36449) 205 of 206, this branch 206 of 206, plus the threeagc_driver_window_selectstests and bothagc_driver_split_wave_groupstests on the branch. The one failure onmainis the timing check ofagc_driver_pm4_order_signal(a held submission started 0.138 ms after the wait began) while other builds loaded the machine; it passed on the branch.VUID-0 on both,was not found but was requested0 on both, the validation layer was inserted on both.agc_vector_windowandagc_shader_disk_cachetests (7): passed onmainand on this branch.agc_shader_memoryandagc_shader_memory_coherent_atomic_loads(CPU only, they open no Vulkan device), run with the same environment: passed onmainand on this branch; the legacy fixtures remove the 8-byte tail of version 64.agc_driver_split_wave_groups_forms: multipliers 16x16 -> 4, 256x1 -> 4, 192x1 -> 3; one wave, wave32, 96 threads, LDS, barrier, scratch and partial groups keep W = 1 and the same module as without the flag.agc_driver_split_wave_groups_dispatch: 16x16, 256x1 and 192x1 workgroups give the same output with the switch unset, at the first dispatch with the switch set (current form while the split pipeline builds), after the background build (split form, counted) and after the switch is unset; LDS, barrier, 96 threads and a partial group never run the split form; an indirect dispatch with the switch set runs the current form, a direct one beside it the split form.python3 tools/check_conventions.py --base origin/main: passed.python3 tools/pr_overlap.py --branch crew/f2/split-waves: exit 2, open pull requests change neighbouring lines; none splits workgroups or multiplies dispatches. The branch includes the window-select change it depends on, so its overlaps (#13863, #21708, the version and list lines) appear here as well and are described there.ShaderWorkgroupInputForinSpirvEmitter.cpp, where this change addsSplitWaveCount, and lines inSpirvEmitter::Emitnext to where this change setssplitWaves. Programs with LDS atomics never take the split.Driver::dispatch, where this change setssplitWaveGroups, and inVulkanDevice::recordDispatch, where this change multiplies the workgroups in x and chunks bylimit / W.main; those that change the emitter files of this change were read by hand. #9356, #9387, #15548 and #17611 (mesh-path draws run as compute) read the workgroup id and local index in modules for mesh-path draws, which never request the split. #12944 (ds_ordered_countin wave launch order) reads them for programs withDataOrderedCount, which the split refuses. The others do not touch the workgroup id, local index, workgroup count or local size.tools/trace_digest.pysummaries of the same build with the switch unset and set (APS5_ABarms), on the same machine and in the same scene of a title, in alternating phases of one run with a warm shader cache.mainalone does not reach that scene, so the measured build also carries other open changes; the switch turns only this change on and off, and the arms alternate within the same run. The GPU time of the affected program fell by about half. The frame time of the scene moved by less than the variation between phases, so this change alone gives no clear frame-time result there; together with other pending changes, including the window-select form, the frame time fell clearly.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)Summary by CodeRabbit
APS5_WINDOW_SELECTS.APS5_SPLIT_WAVE_GROUPS.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T08:33:30Z.
Review: COMMENTED
Reviewed — no blocking findings
The reviewed code has no verified blocking defect; approval is not justified because two changed files were not read and no checks were run in this review.
What I ran
No commands or tests were run. I inspected the prepared diff for head
9827af41c2a99fb50904130acdb5a7233435e224and used therepo_read.pyreader for targeted source context.Results
Findings
Blocking
None verified in the code read.
Non-blocking
None.
Not verified
The full contents of
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppandcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppwere excluded from the review folder and were not read. No tests or builds were run. The author's test and performance reports were not independently verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T18:41:33Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
Changes are required before merge: restore the Base64 value for
/to 63 so serialized requests containing that character can be decoded.What I ran
Reviewed the prepared diff and targeted source at head
ab21df1ed6d7378f42f94f7df837f148b44239d6. No tests were run.Results
Findings
Blocking
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp:907: The/Base64 character now decodes to 65, but the Base64 alphabet assigns it 63. Valid serialized requests containing/will decode incorrectly and may fail deserialization or produce corrupted data. Restore the return value to 63.Non-blocking
None.
Not verified
The full text of changed files was not reviewed. Targeted source read:
core/shader/recompiler/ControlFlow/src/RequestSerializer.cppandcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp. The prepared description, commits, manifest, and diff were read. Files excluded from the review bundle as too large:core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppandcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp;VulkanDevice.cppwas inspected through the reader at the dispatch hunk. Other changed files were not read at head. No tests or other checks were run.To get this to a good state
Restore the
/decode value to 63 and rerun the request serialization tests.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-23T09:00:36Z.
Review: COMMENTED
Reviewed — no blocking findings
The prepared diff and available source context do not show a verified blocking defect, but the review is incomplete because two changed files were excluded and repository tests were not run.
What I ran
Reviewed head
496f424fe6cab9fd89b05b4857f4a67ab7e187c5from the preparedreview/materials. No commands or tests were run; the pinned repository reader was unavailable in this session.Results
Findings
Blocking
None verified in the material inspected.
Non-blocking
None.
Not verified
Full source text for
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppandcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppwas excluded from the review folder and could not be accessed through the pinned reader. Repository source context and tests were not verified. Other changed files were included infiles/; the diff was inspected, but not every included full file was read.To get this to a good state
Nothing is required. Optional: complete the source and test review for the excluded files before relying on this review as a merge decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T07:11:59Z.
Review: COMMENTED
Reviewed — no blocking findings
The split-wave and window-select changes show no concrete blocking defect in the reviewed source; checks were not run in this review.
What I ran
470c03180bcebc928454f3ad07fd17c43d4c4053and the prepared patch. No commands or tests were run.Results
Findings
Blocking
None identified in the code inspected.
Non-blocking
None.
Not verified
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppandcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppwere listed as oversized in the manifest; their changed regions were read throughrepo_read.pyat the pinned head.review/description.md,review/commits.md,review/manifest.json,review/diff.patch; changed source and test contexts listed above, plus the other included files’ changed hunks in the patch. Files excluded from the review bundle:core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppandcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp(oversized; targeted regions read viarepo_read.py).To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T17:54:06Z.
Review: COMMENTED
Reviewed — no blocking findings
The split-wave eligibility checks, invocation and workgroup ID mapping, and dispatch multiplier/chunk handling are consistent in the inspected paths; the reported test results were supplied by the author and were not run in this review.
What I ran
Reviewed head
46f26160c3ee964afaaa47184e701f997f54e285usingrepo_read.pyto inspect the prepared diff and targeted code. No tests or build commands were run.Results
Findings
Blocking
None found in the inspected code.
Non-blocking
None.
Not verified
The full text was read for the included changed files. Two changed files were excluded from
files/because they were too large:core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppandcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp. Only the relevantVulkanDevice.cppdispatch range was read; the rest of both files and the broader test suite were not verified. No tests were run.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T20:23:47Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the behavior and compatibility paths reviewed are consistent with the stated design.
What I ran
Reviewed head
6efb17c27d51eddcd3d648c5563d6f545149fa85using the prepared diff and pinned repository reader. No build or tests were run by me; test results in the description are author-reported.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
I read the prepared description, commits, manifest and diff, and inspected changed code in
VulkanDevice.cpp,Dispatch.cpp,RuntimeSwitches.hpp,RuntimeSwitches.cpp,ShaderDiskCache.cpp,ShaderMemory.cpp, both execution test files and their CMake files,RequestSerializer.cpp,Recompiler.cpp,Recompiler.hpp,ShaderDiskCache.hpp,CacheKey.hpp, and the changed SPIR-V emitter files. The manifest marks every changed file as reviewed;VulkanDevice.cppandShaderMemory.cppwere excluded from the prepared full-text bundle, so I read only relevant ranges through the pinned reader. I did not run tests, a build, or hardware validation. The author’s reported test and performance results were not independently verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-27T20:29:07Z.
Review: COMMENTED
Actionable comments posted: 2
ad16c8c3-c6e1-4bc5-b2f4-40c64e6f670fReviewing files that changed from the base of the PR and between
fdf873a7d2and6efb17c27d.core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/RuntimeSwitches.hppcore/libs/prx/libSceAgcDriver/Graphics/src/RuntimeSwitches.cppcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_split_wave_groups_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_window_selects_tests.cmakecore/libs/prx/libSceAgcDriver/tests/execution/SplitWaveGroups.cppcore/libs/prx/libSceAgcDriver/tests/execution/WindowSelects.cppcore/shader/recompiler/CacheKey.hppcore/shader/recompiler/ControlFlow/src/RequestSerializer.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/Recompiler.hppcore/shader/recompiler/ShaderDiskCache.cppcore/shader/recompiler/ShaderDiskCache.hppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hppcore/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterRegisters.cppcore/shader/recompiler/SpirvBackend/src/SpirvEmitter.cppcore/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cppcore/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvInputOutput.cppcore/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cppcore/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cppcore/shader/recompiler/tests/RequestSerializerTests.cppdocs/dev/ENVIRONMENT.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-29T08:22:37Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
Changes are required before merge: fix split-wave chunking when the x workgroup limit is smaller than the group multiplier.
What I ran
Reviewed head
89c4240e142b13e748c50ba09717203a46f02c7f. Read the prepared description, commit list, manifest, diff, and targeted changed-source ranges throughrepo_read.py. No build or tests were run in this review; test results in the description are author-reported.Results
Findings
Blocking
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp:205:stepXbecomes zero whenlimit[0] < groupMultiplier. The loop then incrementsxBaseby zero and hangs recording the dispatch. Reject or safely handle this case before entering the chunk loop.Non-blocking
None.
Not verified
Build and runtime behavior were not independently verified. Read changed files:
VulkanDevice.hpp,Dispatch.cpp,VulkanDevice.cpp(targeted ranges),RuntimeSwitches.hpp,RuntimeSwitches.cpp,ShaderDiskCache.cpp,ShaderMemory.cpp(targeted ranges), both test CMake files,SplitWaveGroups.cpp,WindowSelects.cpp,CacheKey.hpp,RequestSerializer.cpp,Recompiler.cpp,Recompiler.hpp,ShaderDiskCache.cpp,ShaderDiskCache.hpp,SpirvEmitter.hpp,SpirvEmitterState.hpp,SpirvAluEmitterRegisters.cpp,SpirvEmitter.cpp,SpirvEmitterHelpers.cpp,SpirvInputOutput.cpp,SpirvModuleEmitter.cpp,RequestSerializerTests.cpp, andENVIRONMENT.md. No changed file was excluded from review; two large files were read at relevant ranges through the pinned-head reader.To get this to a good state
Guard against
limit[0] / groupMultiplier == 0so chunking either reports an unsupported device limit or uses a valid dispatch strategy.Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-29T08:27:22Z.
Review: COMMENTED
Actionable comments posted: 1
4e4b0ba6-ea8e-4c04-8454-d7b4ec95613bReviewing files that changed from the base of the PR and between
6efb17c27dand89c4240e14.core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/RuntimeSwitches.hppcore/libs/prx/libSceAgcDriver/Graphics/src/RuntimeSwitches.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/CacheKey.hppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/Recompiler.hppcore/shader/recompiler/ShaderDiskCache.cppcore/shader/recompiler/ShaderDiskCache.hppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hppcore/shader/recompiler/SpirvBackend/src/SpirvEmitter.cppcore/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cppdocs/dev/ENVIRONMENT.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-29T08:50:04Z.
Review: COMMENTED
Actionable comments posted: 1
f748370b-7870-4aaa-9e94-9c4f6790d774Reviewing files that changed from the base of the PR and between
89c4240e14andcbfb79f339.core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/shader/recompiler/SpirvBackend/src/SpirvEmitter.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-29T08:54:53Z.
Review: COMMENTED
Reviewed — no blocking findings
The reviewed code at
cbfb79f3393db690defe9ae0c7763e0e1ff0a6d8has no verified blocking defect; the tests listed in the description are author-reported, and I ran no checks.What I ran
No commands were run. I read the prepared diff and targeted source ranges with
repo_read.pyat the pinned head.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
I did not run tests or builds. I read the changed logic in
Dispatch.cpp,VulkanDevice.cpp,SpirvEmitter.cpp,SpirvInputOutput.cpp,SpirvModuleSetup.cpp,SpirvAluEmitterRegisters.cpp,SpirvModuleEmitter.cpp,Recompiler.cpp,RequestSerializer.cpp, andShaderDiskCache.cpp, along with the relevant test ranges inShaderMemory.cpp. I also inspected the prepared diff and manifest. The manifest marksVulkanDevice.cppandShaderMemory.cppas excluded from the full-text folder; I read their relevant ranges through the reader. I did not read every file listed as reviewed in the manifest or every changed test and documentation file, so approval is not justified. Hardware behavior and the author-reported test runs were not independently confirmed.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-29T17:57:13Z.
Review: COMMENTED
Reviewed — comments
The split-wave and register-window select changes have concrete correctness gaps in their eligibility and dispatch handling; those points should be addressed before relying on the optional forms.
What I ran
Reviewed head
508cdaccdc60505fef19efc5eb073e25b9e3a542. I did not run build or test commands. The author reports focused test and performance results in the PR description; those were not independently run here. I read the prepared description, commits, manifest, diff, and the changed files noted below throughrepo_read.py.Results
Findings
Blocking
A bounded
UMin32index can still exceed the register window.WindowSelectsAllowedaccepts aUMin32if either operand is a constant below the window size, but only a constant on the right guarantees the result is below the bound. With the constant on the left, an arbitrary right operand can produce an out-of-range index.SelectedWindowLoadthen falls through to slot zero for unmatched indices, while stores silently leave all slots unchanged. Require the bounded constant to be the right operand, or otherwise prove the resulting index is in range. (core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp:214)The split-wave candidate multiplies workgroups before split-table call handling, but the split-table branch does not disable or reject that form.
request.target.splitWaveGroupsis set beforeSplitTableCallPartsFor; the special path then dispatches table-call parts using its existing split-state machinery. The emitter’sSplitWaveCountrejects programs with split state, but this is decided later during compilation, while the request and dispatch path can still carry the split flag. This interaction is not covered by a verified failure from the code inspected, so I cannot establish a concrete defect at this point; it is not listed as blocking.Non-blocking
program.BlockOrder()and its instructions. Confirm that this order includes every reachable instruction relevant to shared state and barriers; I did not verify the IR traversal contract.Not verified
VulkanDevice.hpp,Dispatch.cpp,VulkanDevice.cpparound pipeline readiness and dispatch recording, the split-wave emitter and workgroup ID/local index paths, the register-window emitter and eligibility function,ShaderDiskCache.cppat serialization fields,ShaderMemory.cppat the updated legacy fixture helper,RequestSerializerTests.cpparound compatibility cases, and both new execution test files. I also inspected the prepareddescription.md,commits.md,manifest.json, anddiff.patch.VulkanDevice.cppandShaderMemory.cppwere excluded from the prepared review folder; only targeted ranges and searches were read throughrepo_read.py. Other changed files were present in the manifest as included but were not all read in full. No build, test, negative control, or runtime verification was performed.To get this to a good state
Nothing is required for the blocking issue if the select form is restricted to provably in-range indices; otherwise fix the eligibility condition before enabling it. Optional follow-up: verify the split-table interaction and IR block traversal contract before relying on those cases.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-30T17:52:07Z.
Review: COMMENTED
Reviewed — no blocking findings
No verified defect blocks this change; I found one optional cleanup point in staged-build tracking.
What I ran
Reviewed head
c2c0c26849633582eb573149126a555c5077061b. Inspected the prepared diff and manifest, and usedrepo_read.pyto inspect changed ranges for files excluded from the review folder. No tests or builds were run.Results
Findings
Blocking
None.
Non-blocking
Dispatch.cpp:113retains every staged pipeline identity in a process-wide map. The weak device key does not release the identity set, so it can grow as new candidate variants are encountered. Consider removing entries when builds finish or pruning expired device entries.Sources
Not verified
VulkanDevice.cppandShaderMemory.cppwere excluded from the prepared file bundle and inspected throughrepo_read.py.To get this to a good state
Nothing is required. Optionally prune completed or expired entries from staged-build tracking.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-30T17:58:48Z.
Review: COMMENTED
Architecture findings (2)
Advisory architecture findings (2)
c4ee6e10-dcdb-4939-9610-b3ec9cec6287Reviewing files that changed from the base of the PR and between
508cdaccdcandc2c0c26849.core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/RuntimeSwitches.hppcore/libs/prx/libSceAgcDriver/Graphics/src/RuntimeSwitches.cppcore/shader/recompiler/CacheKey.hppcore/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cppcore/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cppdocs/dev/ENVIRONMENT.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-01T09:00:30Z.
Review: COMMENTED
Reviewed — no blocking findings
No concrete blocking defect appeared in the inspected changes, but the review is incomplete because I did not read every changed file.
What I ran
Reviewed head
ca2adaa341cc465221e7d0c33e85ad159a5829c3using the prepared review materials and targetedrepo_read.pysource ranges. No tests or other checks were run.Results
Negative control
Could not run a negative control because no tests were run.
Findings
Blocking
None identified in the inspected changes.
Non-blocking
No code-level non-blocking findings identified.
Sources
Not verified
The manifest lists 27 changed files. I reviewed the prepared diff and targeted source ranges, but did not read every changed file in full. Full head text was not present in
files/forcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppandcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp; their behavior was not fully verified. No tests, builds, or console behavior were independently confirmed.To get this to a good state
Nothing is required. Optional: complete the review of the unverified changed-file areas before treating this as a full review.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T19:07:35Z.
Review: COMMENTED
Please cover the x-chunk boundary in the dispatch fixture. The 192-thread case currently launches four guest groups, so it only tests a multiplier of three within a single Vulkan dispatch. The separate chunk path has to divide the device limit by three and start the next dispatch with a guest-space workgroup offset. A case one guest group past that boundary could check the last group of the first chunk and the first group of the second, including their workgroup IDs, with the split form active.
At
ca2adaa341, applying the branch to maina9cbd48cbalso conflicts inVulkanDevice.cppandShaderDiskCache.hpp. The branch needs a rebase before I can compare the current integrated Vulkan runs.AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-04T00:57:49Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected split-wave dispatch and emitter paths show no concrete blocking defect, but review coverage is incomplete.
What I ran
Reviewed prepared diff and metadata for head
6b330b0d830f90789a9c15a0c1e478dec9bc21f3. Usedrepo_read.py catfor targeted source excerpts. No tests or other executable checks were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The full text of every changed file was not reviewed. Targeted source excerpts were read from
VulkanDevice.cpp,Dispatch.cpp,SpirvEmitter.cpp,SpirvModuleSetup.cpp,SpirvInputOutput.cpp,SpirvModuleEmitter.cpp,Recompiler.cpp,RequestSerializer.cpp,CacheKey.hpp,ShaderDiskCache.cpp, andSplitWaveGroups.cpp; excerpts fromSpirvAluEmitterRegisters.cppandShaderDiskCache.hppwere also inspected. The full behavior of the window-select changes and the remaining changed files was not verified. The reported GPU tests and performance measurements were not independently run.VulkanDevice.cppandShaderMemory.cppwere listed as too large for the review folder; relevant changed excerpts were accessed throughrepo_read.py.To get this to a good state
Nothing is required. This comment does not provide a formal merge decision because review coverage is incomplete.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-04T09:00:44Z.
Review: APPROVED
Reviewed — looks good
The inspected changes at
3c726072cac664273f8a48445723e259b5dd69e2show no blocking defects in the split-wave mapping, eligibility checks, or dispatch chunking.What I ran
Reviewed the prepared diff and all 28 changed-file hunks; used
repo_read.pyfor pinned source context. No tests or build commands were run.Results
Negative control
Not run; no test was executed or modified during this review.
Findings
Blocking
None.
Non-blocking
None.
Sources
The reviewed implementation checks split eligibility and emits the split mapping in SpirvEmitter.cpp at the reviewed commit. Dispatch multiplication and x-axis chunking are in VulkanDevice.cpp at the reviewed commit, and request gating and staged fallback are in Dispatch.cpp at the reviewed commit.
Not verified
The full text of
VulkanDevice.cppandShaderMemory.cppwas not included infiles/; relevant dispatch code was read through the pinned reader, while theShaderMemory.cppchanges were reviewed in the diff. The author-reported tests, hardware behavior, and performance measurements were not independently reproduced.Read: all 28 changed-file diff hunks. Full text excluded from
files/:VulkanDevice.cppandShaderMemory.cpp. No changed paths were excluded from the prepared diff.To get this to a good state
No changes required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-04T11:47:12Z.
Review: COMMENTED
Reviewed — comments
Nothing blocks this; the points below are optional.
What I ran
Reviewed PR head
963e7356c64bba36d9a3a0792d647179a64adb30using the prepared diff and targeted source ranges from the pinned reader. No tests or builds were run. The PR description’s test and performance results are author-reported.Results
Negative control
Not run; no tests were run.
Findings
Blocking
None identified in the inspected ranges.
Non-blocking
None.
Sources
Not verified
This is a partial review, so the evidence does not justify approval. At the pinned head, I read targeted ranges in
Dispatch.cpp,VulkanDevice.cpp,SpirvEmitter.cpp, andSpirvAluEmitterRegisters.cpp. The remaining 24 changed files listed inmanifest.jsonwere not read in full;files.jsonlists no excluded paths. I did not verify runtime behavior, tests, builds, or the author-reported measurements.To get this to a good state
Nothing is required.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.