Repository navigation
Conversation
|
Thanks for going after the wave64 LDS refusals: they are one of the clearest blockers on 32-lane cards, and One concern with A tighter rule could accept only Written with an AI assistant (Claude). |
|
Test on an RTX 4070 (32-lane waves): this PR makes the driver create one of the compute pipelines that every 32-lane NVIDIA run refuses, Tested
Not tested: that run only reached the profile screen: my scripted presses didn't get past it, and the pipeline was made by the early-start warm-up. So I have not seen this program dispatched in the world, or its output. Other GPUs not tested either. AI use: the runs were done on my machine. Claude Code (Claude Opus 5.5) built and ran them, compared the outputs and wrote this comment. |
|
Tested on NVIDIA (32-lane host): this brings up one of the wave64 compute pipelines that this card refused (#7, #11). Setup: RTX 5070 Ti, driver 621.24, Windows 11, Ryzen 7 9800X3D. Own 1.0.2.1 copy, Series X profile, diagnostics build:
There was no device removal and no crash in a 7-minute run in the world, and the walls and lighting in the prologue room render. The four that are still refused presumably fail the lane-private LDS analysis. If it helps, I can rerun with The fps numbers are not a clean A/B, because other PRs changed in the same build, so I am leaving them out. |
What
Adds an analysis (
lds_lane_private) that lets a console wave64 program run in host waves of 32 even when the group is over 32 threads and LDS is in play — provided every LDS access's address derives only from per-lane values (the entry VGPRs, i.e. the thread id) plus uniforms and constants, and never from memory or another lane's LDS word. Such accesses need no ordering between the host waves: each console lane touches only the words its own address names.Wired into the halving decision next to
lds_ok/lds_meetings.VICTORY_WAVE_LDS_ASSUME=1force-enables it for programs the analysis cannot follow (quarantine keeps a wrong guess contained).Why
Programs with a group over 32 and LDS otherwise stay at WaveSize 64, which a 32-lane host refuses — on NVIDIA these pipelines never come up.
Measured
WaveSize 32than did before (probe:wave_why; verified withdxc -dumpbinon the emitted container).WAVE64-LDS-PRIVATE), where they would have been refused before.The four structure-builder programs are not among them — their LDS is genuinely shared across the console wave (a lane writes a flag at a fixed word, the rest read it) inside divergent regions, so they still need the full treatment. Notes on that, and on everything above, are in
docs/wave64-notes.md.Probes added
lds_dump— decodes a dumped console shader and prints every LDS access with the address computation.validate_dump— validates dumped containers with dxil.dll.wave_why— explains why a program keeps 64-lane waves.No game data of any kind is included — the probes take a file path at runtime.