Graphics: mesh programs pick their form from the measured mesh-shader wave #29
No reviewers
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!29
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/29/head"
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?
@Sr-0w on GitHub · 2026-11-25 12:45 UTC · original
Sr-0w:graphics/mesh-wave-probe→main· +375 −23 · 18 files · 2 commits · merged 2026-11-25 13:05 UTCD3D12 reports one wave range for every stage (
WaveLaneCountMin-Max), so a wave64 mesh program with floor 64 took its superstep form on any 32-64 adapter. An RX 7800 XT runs every mesh shader in 64-lane waves (at 32, 64 and 128 threads and with long loops), and there the superstep form of a skinned depth pass (85 group-barrier stops) held a retail game's queue for 1.5 s or more per draw.MeshWaveProbe(FiveStar.Graphics) dispatches a 128-thread probe mesh shader, embedded as HLSL and compiled by the DXIL backend (bindless raw UAV at heap slot 0), and keeps the leastWaveGetLaneCount.DesktopAdapter, logged asmesh shaders run in N-lane waves (probe)). The CLI measures it throughMeasuredAdaptersfor plan, pso and setup.AdapterInfo.MeshWaveLanescarries the result. The compile-host protocol passes it on, the program-cache adapter folder includes it (-ms64), and--list-adaptersprints it.VariantSelectorcompares a mesh shader's floor with the measured wave, or withWaveLaneCountMinwhen nothing was measured. Compute fallbacks still useWaveLaneCountMin.Tests:
Docs:
shader-translation.md(Variant selection) andd3d12x-pipelines.md(adapter folder, variant row).🤖 Generated with Claude Code
@ThatRecompDev on GitHub · 2026-11-25 13:05 UTC · original
this is a great one: measuring the real mesh wave instead of trusting WaveLaneCountMin means AMD skips the superstep form entirely where it runs mesh shaders at 64. 1.5 s per skinned depth draw is exactly the kind of stall we've been fighting on NVIDIA too. merging, thanks!