Skip to content

Help wanted: cheaper wave64 mesh shaders on 32-lane GPUs #35

Backlog

Description

@ThatRecompDev

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.

Activity

  1. added
    enhancement
    help wanted
    on Nov 25, 2026
  2. ThatRecompDev commented on Nov 26, 2026

    @ThatRecompDev
    OwnerAuthor

    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

  3. almostxxx27 commented on Nov 27, 2026

    @almostxxx27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions