diff options
| author | NotRexed <therealnothingfn@gmail.com> | 2026-12-01 09:06:17 -0500 |
|---|---|---|
| committer | NotRexed <therealnothingfn@gmail.com> | 2026-12-01 09:06:17 -0500 |
| commit | 19d3484d71a5f7d5e96d27a325ee83c1bb4e7c55 (patch) | |
| tree | 7a06b5d8ea456bb1de2f14c97303a6f531167905 /docs | |
| parent | 57484f6912d4488eafc2dfe81b472a91a8e9b7cf (diff) | |
Indirect batches can stay open past programs that only read through views picked from the heap (LEONIDA_BATCH_HEAP_READS, off), and the batch pass reads its job, count and budget at once
- draw.rs: with LEONIDA_INDIRECT_BATCH=4 a program that picks buffer views from
the heap by an index it computes ended every batch of indirect records, even
when every store it makes goes through views its bind declares (it may only
read through the picked ones). stores_bound already says no of a store
through a picked view, so with LEONIDA_BATCH_HEAP_READS=1 such a program is
asked like any other. The 1,004 CS_RaytracingResolve hit programs are of that
kind, and the batch count a frame (900 to 1,000) follows their 934
dispatches. Off by default until measured; nameable in LEONIDA_AB. The
LEONIDA_BATCH_WHY line names 16 programs, not 8.
- indirect/batch.rs: the pass read the job table's count, then the job, then
the budget by an atomic or, then charged it by compare and exchange: four
trips to memory one behind the other, about 930 passes a frame. The count,
the experiments' bits, the job and the budget are read together now, and a
pass whose jobs fit in one group and all fit in what is left of the budget
(it is then the only group charging it, after every earlier shader write)
adds them with one atomic it does not wait for. Otherwise it charges as
before. What it writes and charges is the same.
AI-assisted (Claude). Tested on RTX 4060 Ti 16 GB, driver 616.64: the batched
clamp's WARP and card tests (budget charging, cut dispatches, the clamp of one
execution against the batch).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions