Files
metal2vulkan/crates
Anees Iqbal 3871cb62df RUNTIME_VERSION 2113: a grid narrower than a threadgroup runs on the flat variant's one pipeline
The commits before this one. compute.rs's flat_direct sent a dispatchThreads grid narrower than one threadgroup to the
split form, one region whose local size is the grid itself, so each width was a VkPipeline of its own: a kernel that
does not observe its partition, dispatched at ~64 narrow widths (reims's Valley on the XTX: GL-on-Metal's index
fix-up kernel, 185,566 creations of 200 keys in 45 s, each remade ~900 times past the variant's 32-pipeline memo, every
such dispatch's command buffer waiting for a pool making). Now any remainder on any axis, a grid that is only an edge
included, takes the flat variant's one VkPipeline of the call's threadgroup size (docs/API.md's SplitDispatch entry
already describes this); exact multiples and empty grids still go direct. The memo's size is unchanged. Also: the
spares' mixed-load test keeps its load within HELD, and a new test of the cross-pool take runs in encoded order with
nothing timed (it fails without the take: m3-max-20910; passes with it: m3-max-20907).

Verified: tests/grid_widths.rs (widths 1..=100 in threadgroups of 128, twice) made [100, 100] pipelines before
(m3-max-20779) and [1, 0] after (m3-max-20836); lanes dispatch_executions, degrade_notices, indirect_dispatches and
compute_threadgroups 42/42 (m3-max-20782); runtime suite on lavapipe 2345 run, 2344 passed, the one failure fixed on
development since (merge_scratch, e920f94991; m3-max-20921); lint at the fix (m3-max-20783).
2026-11-12 06:10:37 -08:00
..