Help wanted: cheaper wave64 mesh shaders on 32-lane GPUs #35
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ThatRecompDev--five-star-recomp#35
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@ThatRecompDev on GitHub · 2026-11-25 16:22 UTC · original
the console runs mesh shaders in 64-lane waves. on 32-lane GPUs we emulate that exactly with the "superstep" form (a dispatch loop with a group barrier at every wave operation), which is correct but slow: skinned mesh shaders like
MSNC_VS_LinearDepthSkintake ~75 µs per round and some passes stall for seconds.ideas we'd love help with:
[WaveSize(64)]on GPUs that support it, then a cheap mesh shader that just emits the resultsWindowAnalysis/SkipRegion)--fast-wavessafe: it's parked because one program (0194d7ba) can hang when a branch decided per hardware wave leads to paths with different barrier countsbackground:
docs/shader-translation.md(superstep form, fast waves, loop guard). AMD folks: #29 already lets RDNA run mesh shaders natively at 64.@ThatRecompDev on GitHub · 2026-11-26 11:37 UTC · original
thanks, these are really well scoped
idea 2 is the one i'd start with, it's pure translator and the floor histogram makes it easy to measure. the readfirstlane-of-a-uniform-value case alone is 1,338 programs, so even a conservative "derived only from SGPRs / uniform loads" rule should move a lot of them off the superstep path
idea 1 is neat since msfb already does most of it. the extra compute pass + buffer per draw worries me a bit now that we're cutting per-draw overhead, but for the heavy mesh programs it would still win
if you want to take a stab at idea 2 a PR is very welcome, otherwise we'll pick it up
@almostxxx27 on GitHub · 2026-11-27 11:20 UTC · original
#69