fix(shader): support wave32 mesh programs #2137
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2137"
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 Sanjaysrinivas on 2026-10-09T09:52:31Z.
What
Wave32 NGG mesh programs currently fail resource analysis with
mesh shader translation configuration is not supported, even for a 32-thread workgroup. The mesh entry prologue rejects every wave size except 64 and constructs its wave indices and counts with 64-lane constants.Use the declared guest wave size for the wave index, per-wave vertex/primitive counts, and the workgroup wave count in
s3. Preserve wave64 behavior and rejection of partial waves and workgroups exceeding the four-bit wave-count field.The register layout follows Mesa's
get_wave_id_in_tg,get_tgsize, andget_thread_id_in_tgin gfx10_shader_ngg.c.TechnicalDebt.mdrecords this source, validation, and the remaining console-hardware verification gap.Tested
Windows, MinGW-w64 GCC 15.2.0, Release, NVIDIA RTX 4070 Laptop GPU. SPIRV-Tools disabled.
hardware_oraclepassed (10/10, 8.08 s). Shader cache disabled; Vulkan required; no GPU checks skipped. The optional oracle assembly case skips locally because LLVM is not installed. The conventions check passed. Shader and driver sources are unchanged through the final rebase onto main745b775e2, which includes the upstream oracle CI fix #2151. The oracle suite was rechecked after that rebase.d9484c719with #1188, #1836, #1893, and this fix applied. A clean driver build passes the mesh-configuration failure and stops later atshader sampler pairs exceed runtime heap capacity. Gameplay and FPS are unverified. The prerequisite startup patches are not included in this PR.Linux and console hardware were not tested. Full cross-platform PR builds require the repository's manual collaborator workflow.
Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-10T06:13:08Z.
Checked on Linux (merged onto current main, RADV): scoped build and ctest green,
agc_shader_memoryandagc_driver_meshpass, and both fail with the translator change reverted. The wave32 prologue keeps the wave64 behaviour and the partial-wave / >15-wave rejection; the TechnicalDebt line records the unverified console register values. Merging.