diff options
| author | NotRexed <therealnothingfn@gmail.com> | 2026-11-28 22:32:00 -0500 |
|---|---|---|
| committer | NotRexed <therealnothingfn@gmail.com> | 2026-11-29 21:15:36 -0500 |
| commit | 1747cf4071dd21d1552e58665db07efd46100e28 (patch) | |
| tree | 06db7f130640a63eaa8f0da6b2113820448d9e1c /runtime/test/vk_queue_query_sync_test.cpp | |
| parent | 1341d658b7672ef382bdc8460dcda1d2fbd995d7 (diff) | |
Mesh programs: their own output counts behind LEONIDA_MESH_COUNTS=1 (off by default)
All 1,078 mesh programs of recent runs are console wave64, and their translations
pay nothing for it on 32-lane hosts: no group-shared memory, no barrier, no ballot,
no exchange between host waves; the only wave operation is WaveReadLaneFirst. So a
paired or wave-wide form has nothing to take away from them (docs/findings.md).
What the translation did pay: the counts were the declared maxima (128 and 128 for
the heaviest), with every slot culled first, so the host's primitive stage takes
every slot of every group. With LEONIDA_MESH_COUNTS=1 the counts are the program's
allocation request: M0 is made again in the deepest block before the request that
every thread runs once and that comes before every export, the group's first thread
gives it to the group through one group-shared dword and a barrier, and outputs past
the counts are not written. A program without such a place keeps the maxima
(LEONIDA_WAVE_WHY=1 says why). Without the switch the emitted modules are unchanged.
The shader cache keys on the switch (translation_fingerprint lists every LEONIDA_*
switch the translator reads; a test checks it is listed).
Tests: the place and the chain on hand-written programs; dxil.dll's validator; on
WARP a group that asks for no primitive draws nothing, as on the console.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/vk_queue_query_sync_test.cpp')
0 files changed, 0 insertions, 0 deletions