diff options
| author | NotRexed <therealnothingfn@gmail.com> | 2026-11-28 15:09:35 -0500 |
|---|---|---|
| committer | NotRexed <therealnothingfn@gmail.com> | 2026-11-28 15:09:35 -0500 |
| commit | 120ffc2a4000c92bbf88389b85236d5b446705db (patch) | |
| tree | a4b09ed7de5fc9f105c7a224100687becdecb231 /runtime/test/code_hooks_test.cpp | |
| parent | 52bda13cb1870c46cbbf14d46d536d13d2931571 (diff) | |
Indirect batches stay open past programs whose every store goes through views their bind declares, and a record is clamped again behind one bound to it since the pass (LEONIDA_INDIRECT_BATCH=4; off by default)
- draw.rs: with 4 a batch ends at a storing program only if some store of its code
could land outside the views its bind declares (by address, scalar stores, views
picked from the heap, a table its bind did not go through, code not known, the
structure builder: stores_declared, views_untold); a record is taken from the
open batch unless a range declared since the batch's pass touches it
(HostList::shaders_wrote_since), else it is clamped in a new batch behind its
writer. LEONIDA_AB can name LEONIDA_INDIRECT_BATCH_4. LEONIDA_BATCH_WHY=1 logs
what ends batches, by program and reason, and the writer/reader pairs.
- pipeline.rs: stores_bound looks at each storing shader once, on a thread of its
own (no until it has): every buffer store or atomic must go through a table
descriptor at a fixed place that is the first of an entry of unordered access
(what the bind goes through) or a root view of unordered access in a program
whose user data is not spilled; per lane, dynamic offsets, past the first of a
range or not tracked: no. Unit test with hand-assembled programs.
- host.rs: the ranges declared since the batch's pass (batch_opened).
Waterside save, Series X, 1440p, RTX 4060 Ti: 900 to 1,000 batch passes a frame
(1: 1,150; 2: 235 to 240), 780 to 840 of them ended by programs that pick their
views from the heap (the meshlet culling passes, CS_RaytracingResolve); 24 to 30
records a frame clamped again behind a writer bound to them. Standing, A/B of 4 s
phases with a level for each view (133 phases): medians against 1 -2.15 ms
(+-0.39) with 4, -3.77 (+-0.38) with 2. 1,116 recorded frames of the standard
moves with 4: no sea fault found (nor in 1,186 with 2 or 489 with 1).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/code_hooks_test.cpp')
0 files changed, 0 insertions, 0 deletions