You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Help wanted: cheaper wave64 mesh shaders on 32-lane GPUs #35
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_LinearDepthSkin take ~75 µs per round and some passes stall for seconds.
ideas we'd love help with:
an XCL-style compute pre-pass at [WaveSize(64)] on GPUs that support it, then a cheap mesh shader that just emits the results
proving more wave operations wave-size independent so fewer programs need the superstep form (WindowAnalysis / SkipRegion)
making --fast-waves safe: it's parked because one program (0194d7ba) can hang when a branch decided per hardware wave leads to paths with different barrier counts
background: docs/shader-translation.md (superstep form, fast waves, loop guard). AMD folks: #29 already lets RDNA run mesh shaders natively at 64.
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
Activity
ThatRecompDev commentedon Nov 26, 2026
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 commentedon Nov 27, 2026
#69
Shaders: prove more first-lane reads console-exact in mesh windows (T…