fix(agc): split oversized dispatches with workgroup offset specialization #7445
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7445"
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 elliot1377 on 2026-10-18T06:46:25Z.
What
A direct dispatch over
maxComputeWorkGroupCountwas split intovkCmdDispatchBasechunks starting at a multiple of the limit, whichVUID-vkCmdDispatchBase-baseGroupX-00421forbids. On NVIDIA the split was refused outright.WorkgroupOffsetspecialization constants (IDs 8241-8243, default 0), added toWorkgroupIdand toGlobalInvocationId(offset × local size). The spanned-wave path derives the global id from the offsetWorkgroupId.buildSpecializedModulekeeps these constants unmaterialized, and every compute result lists them with value 0, so unsplit dispatches run with offset 0.WorkgroupLocalSizeis now shared with theLocalSizeexecution mode, so the two cannot disagree.vkCmdDispatchfrom group 0. Chunks after the first bind a pipeline variant specialized with that chunk's base. Variants share the dispatch's pipeline layout, so bound descriptor sets and push constants stay valid, and they are cached per base onComputePipelineObjects. NovkCmdDispatchBasecall remains, and the NVIDIA throw is removed.NumWorkgroups. Recorded indocs/dev/debt/libSceAgcDriver.md, along with the record-time variant build.tests/execution/OversizedDispatch.cpp: the NVIDIA "must throw" check is replaced by a Y-split coverage check that runs on every vendor (limit + 4097 groups, each group writesgroup_y + 1at dwordgroup_y). The existing X-split coverage check is unchanged.Discussed in #7375.
#7390 fixes the same issue and was opened first. It writes each chunk's offset into the
ShaderDatabuffer withvkCmdUpdateBuffer, moves the affected shaders out of push data and bumpsRuntimeAbi::Version. This PR leaves unsplit dispatches, push data and the ABI unchanged, at the cost of a pipeline variant per chunk base; it also ran on hardware (below). Only one of the two should land; I'll close this one if #7390 is preferred.Tested
Windows 11, MinGW-w64 GCC 15.2.0 (WinLibs r7), full build with
BUILD_TESTING=ON, rebased on currentmain.agc_driver_oversized_dispatchpasses on both GPUs below, with the Khronos validation layer (vulkan-sdk-1.4.335.0) loaded: 0 validation errors. As a positive control, best-practices warnings were enabled and appeared in the same output.mainthis dispatch throws. The X split is skipped because the X limit is 2^31-1.cteston the RTX 4050: 1461/1462 passed.agc_driver_image_plane_address_on_linefails identically on the commit before this change (LOD blend 67.50 vs 60.00); it passes on the Intel GPU.main3ddbc4acc(conflicts with #4650'sDepthRemapBase = 8240uandreadsDepthRemapPush, resolved by keeping both; the offsets stay at 8241-8243): full build OK, andagc_driver_oversized_dispatchpasses on the RTX 4050 under the validation layer with 0 errors. The Intel UHD wasn't available for the rerun, so its result above is from before the rebase.Checklist
main; no other open PR implements the same functions (except #7390, an alternative fix for #7375, see What)NotImplemented_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)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-18T07:14:09Z.
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/Execution/include/VulkanDevice.hppL345core/shader/recompiler/CMakeLists.txtL241core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppL4698-4700core/libs/prx/libSceAgcDriver/Graphics/include/PipelineSpecialization.hppL63-64, L67-69core/shader/recompiler/Recompiler.cppL671-672, L699Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/shader/recompiler/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppdocs/dev/debt/libSceAgcDriver.mdcore/shader/recompiler/Recompiler.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/shader/recompiler/Recompiler.cppcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/shader/recompiler/Recompiler.cppdocs/dev/debt/libSceAgcDriver.mdcore/shader/recompiler/PipelineSpecialization.hppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppdocs/dev/debt/libSceAgcDriver.mdcore/shader/recompiler/PipelineSpecialization.hppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/Recompiler.cppcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/shader/recompiler/CMakeLists.txtdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/shader/recompiler/Recompiler.cppcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppdocs/dev/debt/libSceAgcDriver.mdcore/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cppcore/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppdocs/dev/debt/libSceAgcDriver.mdcore/shader/recompiler/Recompiler.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/CMakeLists.txtcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cppcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppdocs/dev/debt/libSceAgcDriver.mdcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cppcore/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cppcore/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/shader/recompiler/CMakeLists.txtcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/CMakeLists.txtcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cppcore/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cppdocs/dev/debt/libSceAgcDriver.mdcore/shader/recompiler/CMakeLists.txtcore/shader/recompiler/Recompiler.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/shader/recompiler/CMakeLists.txtcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterHelpers.hppcore/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cppcore/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/shader/recompiler/CMakeLists.txtcore/shader/recompiler/Recompiler.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/shader/recompiler/PipelineSpecialization.hppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/shader/recompiler/CMakeLists.txtcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterHelpers.hppcore/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cppcore/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cppcore/shader/recompiler/Recompiler.cppcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/shader/recompiler/CMakeLists.txtcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cppcore/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cppcore/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/tests/execution/OversizedDispatch.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cppdocs/dev/debt/libSceAgcDriver.mdcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/Recompiler.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/shader/recompiler/Recompiler.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/shader/recompiler/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/shader/recompiler/CMakeLists.txtcore/shader/recompiler/PipelineSpecialization.hppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterHelpers.hppcore/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cppcore/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-18T08:21:50Z.
Thanks for this. We're going with this approach for #7375: plain
vkCmdDispatchchunks with the base as specialization constants is correct, costs nothing on in-limit dispatches, and the reshaped-wave path already uses the adjustedWorkgroupId.Two things before it can merge:
MeshLayerBase = 8237uandMeshLayerCount = 8238uin the samePipelineSpecialization.hpp.IsWorkgroupOffset(id)inbuildSpecializedModuleruns on every module, so after both land a mesh module's 8237/8238 would be read as workgroup offsets and its supplied values would throw "a workgroup offset is supplied at dispatch, not prepared". A both-sides merge compiles, so only a run would show it. Could you move the threeWorkgroupOffsetIDs to 8241-8243? 8240 is taken by another open PR (DepthRemapBase), and 8241 onward are free.maxComputeWorkGroupCounton NVIDIA, where main's split was refused?We'll run the full CI and our game checks on the result.
Imported from boykopovar/AnyPS5. Originally posted by elliot1377 on 2026-10-18T09:07:27Z.
Thanks for the review!
WorkgroupOffsetIDs to 8241-8243 in 1551e7af0. Nothing else hardcodes them. I rebuilt and reranagc_driver_oversized_dispatchon both GPUs below: it still passes, with 0 validation errors.mainrefuses on NVIDIA, under the Khronos validation layer (vulkan-sdk-1.4.335.0). There are 0 validation errors, and every group writes its own result. On an Intel UHD (driver 101.7092) both the X and Y splits run and are fully covered. I haven't run it on AMD or lavapipe.The full
cteston the RTX 4050, run before the ID move, passes 1461/1462. The one failure,agc_driver_image_plane_address_on_line, fails the same way on the commit before this change and passes on the Intel GPU.Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-18T15:44:21Z.
Cross-validation of 1551e7af0 on NVIDIA. Scratch-merged on main
a62c724c3(clean), full Release build withBUILD_TESTING=ON.Host: Windows 11 Pro 26220, NVIDIA GeForce RTX 4070 (driver 596.21, Vulkan 1.4.329), Ryzen 7 5700X, MinGW-w64 GCC 15.2.0 (WinLibs r7).
agc_driver_oversized_dispatch3x: 3/3 pass. The Y split runs (1x69,632 groups against a 65,535 limit, every dword checked). The X split is skipped (X limit 2147483647).a62c724c3, kept the new test and rebuilt. It fails 3/3 withVulkan dispatch: workgroup count 1x69632x1 exceeds device limits 2147483647x65535x65535 and NVIDIA drops workgroups of a vkCmdDispatchBase split. After restoring: 3/3 pass.agc_driver_image_plane_address_on_line: 3/3 pass on main3e3e8b905and 3/3 on this PR. Your RTX 4050 failure (67.50 vs 60.00) does not reproduce on the 4070 with 596.21.^agc_driver_pass (-j1 --timeout 300): 528/531, 2 skipped (sparse_dma_buf_import,stencil_ref_export, same as main). The 1 failure isagc_driver_bda_device(vkWaitForFences graphics: Vulkan result 2). It is not from this PR: it fails the same way with this PR's sources reverted toa62c724c3and passes on3e3e8b905, so it came in on main between those two commits (not bisected).-j8): 936 pass.hardware_oracle_comparetimed out under load and passes on a serial rerun.tools/check_conventions.py --base a62c724c3passes.git diff --checkis clean, no env var added.APS5_PROFILE_DRAW=1 APS5_PROFILE_GPU=1 APS5_TRACE_SUMMARY_EVERY=10, PPSA99005 (PS5 OpenGL Showcase) and PPSA99420: no stop line and noexceeds device limitson either build. Every run was still running at 60 s. PPSA99005 creates 2 compute pipelines on both builds, so no dispatch was split there and the split path is not exercised by these titles.3e3e8b905, 2 ona62c724c3) shows this. Frames in 60 s: 402/412 on the PR against 440-508 on main.WorkgroupId + base,GlobalInvocationId + base * LocalSize; the spanned-wave path derives from the offsetWorkgroupId).WorkgroupIdread, and that case still throws.recordDispatchrebinds the base pipeline on every dispatch, so a variant left bound after a split cannot leak into the next dispatch.Not checked: X and Z splits on NVIDIA (the X limit is 2^31-1 and the test has no Z case), AMD, lavapipe, Linux, and any title that issues an oversized dispatch.
Main
a62c724c3, PR head 1551e7af0.Written with Claude Code assistance (validation by a subagent, reviewed in this session).
Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-18T16:33:29Z.
AMD on Windows: the tests this PR names pass on an RDNA 3.5 GPU.
Radeon 860M (RDNA 3.5, driver 32.0.13058.8001), Windows 11 26300, WinLibs GCC 15.2.0 r7, Release.
main6efb7261bwith this PR (1551e7af0) merged, together with #7296, #7446, #7377, #6708, #6748, #6785, #6706, #6613, #7449, #7391, #7489, #7484, #7514. They were built once, so the result is for the combination; each merge was clean.agc_driver_image_plane_address_on_line,agc_driver_oversized_dispatch: pass, 3 runs of 3.agc_*test on the combined build: 713 of 716 pass. The 3 that fail,agc_driver_host_import_lifetime,agc_driver_quad_pixel_maskandagc_driver_layered_volume_vertex_no_gpl, fail the same way on unchangedmainhere, so none comes from these PRs.maxComputeWorkGroupCountof 4294967295, so the X split case printsoversized dispatch X split: skipped, the device reports a 4294967295 workgroup limit, which never splits a 129199x1x1 dispatch: on this device the split path is not reached.AI-assisted
Imported from boykopovar/AnyPS5. Originally posted by elliot1377 on 2026-10-18T20:32:03Z.
Thanks a lot for the cross-check and the negative control, @screamm, and @LeandroLP23 for the AMD run.
About the slower PPSA99005 start-up: I couldn't find a per-run cost in the change. Unsplit pipelines only gain the three offset values (all 0), and the pipeline journal stores and replays them with the rest of the result. What does change is the recompiler sources, so
SourceVersionchanges. The shader disk cache andpipelines.journalfrom themainbuilds don't apply to this build, and its first run recompiles every shader and pipeline.That would explain a slow first ~30 s on the first PR run, but not on runs 2 and 3 if they reused the same cache directory. Could you check two things?
mainrun in between?pipelines.journalholds one source version, so amainrun in between would discard it.[pipeline-journal]and[shader-disk-cache]lines say (replayed compute, rejected, failed)? You hadAPS5_PROFILE_DRAW=1on, so they should be in the logs.If runs 2 and 3 replayed everything and were still slow, I'll dig further.
Imported from boykopovar/AnyPS5. Originally posted by DavidAmsellem on 2026-10-18T22:14:02Z.
Tested on AMD on Linux, which this PR had not covered.
radv, Mesa 25.2.8-0ubuntu0.24.04.41551e7af0merged intomain0bc3003f8, Release,BUILD_TESTING=ONagc_driver_oversized_dispatchpasses.Full
ctestwithANYPS5_REQUIRE_VULKAN=1: 1478 of 1480. Both failures also happen onmainwithout this PR and are unrelated to it:
agc_pipeline_cache_file: the test reads a cache hit as an exactvkGetPipelineCacheDatasizematch, and RADV moves that size by 8 bytes on a hit (#7676).
agc_driver_guest_memory_lifetime_direct: this machine has no read-write access to/dev/udmabufyet.Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-19T01:23:16Z.
Review: COMMENTED
A Linux run on NVIDIA and lavapipe, plus a standalone check of the NVIDIA behaviour that
main's throw describes, for the open question in #7375.Machine: Ubuntu 26.04, i7-8700, GCC 15.2, Release,
BUILD_TESTING=ON, every execution test built. NVIDIA GeForce RTX 3070 (driver 595.99.02) and lavapipe (Mesa 26.0.3, LLVM 21.1.8) on the same host. Head1551e7af0merged ontomaina373e85e5(clean).ANYPS5_NO_SHADER_CACHE=1,-j1 --timeout 30. No validation layer on this host.agc_driver_oversized_dispatch1551e7af0main(production files frommain)workgroup count 1x69632x1 exceeds device limits 2147483647x65535x65535 and NVIDIA drops workgroups of a vkCmdDispatchBase splitOn lavapipe
mainpasses the new Y-split check too, because the out-of-range base it uses is only caught by the validation layer, as #7375 says.#7375 leaves open whether NVIDIA drops workgroups for a valid nonzero base as well. In a standalone Vulkan program (no AnyPS5 code), I recorded one
vkCmdDispatchBaseper case into a pipeline created withVK_PIPELINE_CREATE_DISPATCH_BASE_BIT. Each workgroup counted itself into a buffer slot indexed bygl_WorkGroupID, and every invocation comparedgl_GlobalInvocationIDwithgl_WorkGroupID * gl_WorkGroupSize + gl_LocalInvocationID. I ran it with local size 1 and 64, 3 runs each on the RTX 3070.mainuses for the second chunk, invalid)None of the cases had a mismatched global ID. So on Ampere with this Linux driver,
vkCmdDispatchBasedrops no workgroups, even with the out-of-range base. The drop that288ee89d2dmeasured on an RTX 5070 Ti does not reproduce here, and it may be specific to that GPU or driver. This does not change this PR, which stops usingvkCmdDispatchBaseand keeps every base valid. It only means the removed "NVIDIA drops workgroups" message was not true of every NVIDIA device.Not run: Windows, AMD, Intel, the validation layer, any title.
GPUs tested: NVIDIA GeForce RTX 3070 (595.99.02) and lavapipe (Mesa 26.0.3), Ubuntu 26.04
Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-20T11:27:25Z.
Answers from the saved run records: the order was main, PR, main, PR, PR, main (then two runs of main
a62c724c3). So PR runs 1 and 2 had amainrun between them; PR runs 2 and 3 were consecutive, and run 3 still had the slow first ~30 s (p50 160-168 ms). Each run started from a freshly created output folder, and I did not record where the shader cache sat, so I cannot say the runs shared one. The[pipeline-journal]and[shader-disk-cache]lines were not kept in the saved logs, so I can't give the replayed/rejected counts. The host also had other GPU work running at the time. I have not scheduled a re-run that captures those lines; if you want one, say so and I will look at it in a later wave.Written with Claude Code assistance.