Files
metal2vulkan/docs
Anees Iqbal 1858a2fb34 RUNTIME 2316: Rate-mapped passes count their region-copy and fanned-out vertex work by box size
What: new WorkCounts fields
- rate_map_whole_copy_vertex_regions, rate_map_own_copy_vertex_regions,
  rate_map_run_vertex_regions: vertices x regions drawn through the
  region-copy variant into the whole table, by the encoder's own draws,
  and by a host step's runs;
- rate_map_fanned_vertices, rate_map_fanned_box_vertex_regions: vertices
  fanned out through the geometry stage, and those times the regions of
  their probe-bounded boxes;
- rate_map_fanned_vertices_boxed_16, _64, _256: fanned-out vertices whose
  boxes hold at most that many regions.
render::fan_out::Probed::of also ORs every block's bounds (its reach).
FAST-PATHS' FanOut row, docs/API.md and rate_mapped_pass.rs list them.

Why: on Iris a whole-table region copy costs about 16x a geometry-stage
fan-out a triangle, and the consumer's 127 ms a frame of rate-mapped GPU
time cannot be split between the encoder's own whole-table draws, runs and
fanned draws from today's counts. A plain sum cannot say how much fanned
work lies in small boxes, which a cheaper route for few-region draws
would take.

How verified (lane ratemap3, msi m3-max-30401 at 7a17a61829): render::fan_out
unit tests 6/6; rate_map device tests on lavapipe 19/19, with exact counts
in a_host_step_fans_out_the_commands_the_probe_does_not_flag (encoder frame:
own == whole == (5 x 3072 + 9) x table regions; host step: no whole-table
work, fanned vertices exact; under Exact all zero); clippy -D warnings
plain, cpu_icd and gpu; api_signatures --check clean.
RUNTIME 2316: what a run records changes. No Degradation kind, no
behaviour change.
2026-11-14 15:16:31 -08:00
..