fix(agc): require 32-lane subgroups for wave32 mesh programs #2996
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2996"
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 MarcZX10 on 2026-10-10T20:07:25Z.
What
Fixes #2815. Detect when Vulkan supports required 32-lane subgroups for the mesh stage, enable subgroup-size control when either compute or mesh wave32 needs it, and request subgroup size 32 for wave32 mesh shader stages. Devices that do not advertise this mesh-stage capability keep their existing pipeline behavior.
This carries Silverash-i8's reviewed fix with original commit authorship preserved.
Tested
agc_driver_mesh_testsbuild passed on currentmain.agc_driver_mesh: skipped because the local llvmpipe device does not supportVK_EXT_mesh_shader.agc_driver_meshpassed 3/3 on each device; the reporter observed all 40 triangles rendered in every mesh draw on Arrow Lake.git diff --check: passed.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 repositoryImported from boykopovar/AnyPS5. Originally posted by fma-rc on 2026-10-10T21:54:54Z.
Ran this on two devices that have
VK_EXT_mesh_shader, since the description says the test was skipped on llvmpipe. Heada3437abdonmain262c0316, Linux, GCC 16.2.1, Release.An RTX 5080 (NVIDIA 615.78.08, subgroup 32) and a Radeon 610M (RADV, subgroup 64) both log
Wave32 programs run on subgroups of 32: compute 1, mesh 1, andagc_driver_meshpasses on both, on the NVIDIA card also withAPS5_NO_GPL=1. Full ctest shows nothing new: 709 of 709 on RADV, and on NVIDIA the only failure isagc_driver_dcc_keys_first_write, which fails onmainas well. The build had two unrelated open PRs merged in too.Neither device has a 32-lane default with a smaller minimum, so this does not exercise the Intel case the fix is for.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-10T23:58:18Z.
Checked on current
mainwith the PR merged in:agc_driver_meshpasses, nothing new in the libSceAgcDriver ctest. The requirement reaches the graphics pipeline library path too, since it copies the stage structs with theirpNext. The Intel/ANV behaviour rests on the runs reported by @ThatsLeo and on #2815; merging.