Shaders: no unreachable phase-2 barrier in mesh programs (NVIDIA hang); hardware switch for the shader cases #10
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!10
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/10/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?
@marquezinii on GitHub · 2026-11-24 19:32 UTC · original
marquezinii:shaders/nvidia-mesh-hang→main· +88 −8 · 3 files · 2 commits · merged 2026-11-24 19:49 UTCTwo commits, from running the shader cases on an RTX 5070 (#9):
Tests:
FIVESTAR_TEST_ADAPTER=hardware.WarpDevicecreates the device on the first hardware adapter instead of WARP when this is set. WARP stays the default, so CI is unchanged. This is what found the cases listed in #9.Shaders: phase 2 of a mesh program has a barrier only when it can yield.
BodyWriter.Phasesemitted the barrier at the end of phase 2's loop for every two-phase mesh program. When no block phase 2 can run yields (it is entered only at resume points after a barrier), that barrier is unreachable. On the 5070, dxc's optimized form of such a program hangs the group with DEVICE_HUNG; dxc-Od, the DXIL backend, and the same HLSL without that barrier all draw the reference image. The bisection is in #9.PhaseTwoYieldswalks the flow graph from the yields' resume targets, and phase 2 gets the barrier only when it reaches a yield, so a program that does yield in phase 2 keeps it.Checked:
dotnet buildwith no warnings, anddotnet testwith 509 passed, 0 failed (the skipped tests need a dump or a full-wave GPU).FIVESTAR_TEST_ADAPTER=hardware:ms_ngg_stripsand the narrower-waves mesh test go from DEVICE_HUNG to passing. The shader project goes from 21 failures to 19; the other 19 are the open items in #9.@ThatRecompDev on GitHub · 2026-11-24 19:49 UTC · original
Merged, thanks! Nice find on the unreachable barrier, and the hardware switch for the shader cases is really handy. We'll go through the rest of #9 on our 4090 too.