Files
metal2vulkan/crates
Anees Iqbal 45d18535d3 rt: a group's command buffers share one submit info where no event wait or signal separates them, and a group holds sixteen
The planner's ruled form. A submission's segments go in as few VkSubmitInfo2s as its event waits
and signals allow: a segment that waits on nothing joins the info before it where that one
signals nothing (submit::infos), the upload with the first. Each command buffer keeps its own
timestamps and its commands, barriers and completion are unchanged: only the info boundaries
move. The UHD 630's driver paid about 160 us for each info (probe 06860a3848, job m3-max-43935:
burst_160 at a group of eight 1.9-2.9 ms merged against 28-30 ms in separate infos and
11.6-25.8 ms on the old runtime); the 2080, RX 550 and 3090 ran merged within 1% of separate.

A group holds sixteen command buffers, by the ruled rule (no bound if the UHD without one is
within 3% of its best arm, else sixteen): on the UHD, merged burst_160 ran 1.85 ms at sixteen
and 3.6-4.1 ms unbounded (job m3-max-44105).

Metrics::submit_infos counts the infos passed, so the merged path shows it ran.

Tests: tests::submit_infos (the merge rule: shared until an event wait or signal, a signal-only
info, one segment, none); every_device_shares_submit_infos_within_a_group_and_records_what_it_
records_alone (a group mixing a Private fill, a Shared fill whose end barrier reaches the host, an
empty command buffer, an event signal and its wait: barriers, passes, bytes copied and the words
equal to the same command buffers committed one at a time; fewer infos than command buffers in
groups, one each alone).
2026-11-17 21:55:44 -08:00
..