shader: two console lanes a thread for wave64 groups on 32-lane hosts #180
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/vktory6--VKtory!180
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-180"
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?
@360900 on GitHub · 2026-12-02 00:29 UTC · original
360900:feat/shader-wave64-pairs→main· +1408 −3557 · 19 files · 3 commits · merged 2026-12-02 20:00 UTCWhat
Stacked on #169 (the first commit is that pull request's).
On a host of 32-lane waves, a console wave64 compute group of more than 32 threads that reads its wave runs two console lanes a host thread (
emit/pairs.rs): thread t holds lanes t and t+32, so one 32-lane subgroup is one console wave.s_barrierare as on a 64-lane host.s_barrier(pairs::sees_its_wave).kept_per_lane.with_local_waves,own_bits.rs,lds_flags.rs, the early-out and skip forms,exchange_halves) and their switchesVICTORY_WAVE_LOCAL,VICTORY_WAVE_OWN_BITS,VICTORY_WAVE_DEEP_SKIPS,VICTORY_FIRSTLANE_OWN. All of them ran only behindhost_max_wave() == 32.The reference
No counterpart in the D3D12 path or vkd3d-proton. The console's wave is the reference: 64 lanes, lane order t.
Evidence
host_max_wave() == 32.--host 32,0, whole store: kept per lane 127 before, 21 after, the same 21 as on the 64-lane host; none fails; only compute output differs. All 2,734 compute programs compile in the driver with 32-lane subgroups (vk-xlcost).emit: 242 unit tests; on the card under Proton 342 passed, 5 ignored (RTX 5080, NVIDIA 620.73.04, 32 lanes). 11 newpair_testscheck against the console's result: ballots, a wave OR in a lane branch, a prefix sum, first-lane reads, lane permutes,v_writelaneunder a lane branch, thread ids over 3 group shapes, LDS with and without a barrier, the refused pair form.Checklist (docs/AGENTS.md)
docs/TASKS.mdnot edited (rule 29)unsafeblock has a// SAFETY:comment (rule 36): no newunsafeTRANSLATOR_VERSION: 13 to 14 (rule 27)@vktory6 on GitHub · 2026-12-02 20:00 UTC · original
Merged, thanks. We merged main (with #169 in it) into your branch and kept
TRANSLATOR_VERSIONat 14. On the reference card: the whole-store DXIL diff translates all 19,112 shaders with 0 failures and 0 changed (wave64 groups stay native on RDNA), and the card tests pass (342). The 32-lane pairing only takes effect on 32-lane hosts, so the NVIDIA runs are its evidence; reports from such cards are welcome.The wave model on 32-lane hosts is one of the topics in https://github.com/vktory6/VKtory/discussions/270 ("Where should the shader translator go next?").