Files
metal2vulkan/crates
Anees Iqbal fd23616d17 RUNTIME_VERSION 2160: large pipeline makings hold a process limit of SPIR-V words around their driver call
The three commits before this one. Blender's kernels on RADV made several large pipelines at once, and the driver's
compile memory (a curve kernel alone peaks at several GiB) added up past the host. A making whose stages hold 65,536
SPIR-V words or more now holds its words of a process limit around its driver call (pipeline/compile_memory.rs):
counted makings in flight hold at most 4,194,304 words, a larger one runs alone, and one that does not fit waits for
those in flight, lending its turn while it waits (budget::without_turn); waiters go in turn-rank order, none
overtaking. Applied to compute makings, whole render pipelines (their stages' words) and pipeline library parts (their
own stages). ShaderModule carries its word count. New counters WorkCounts::makings_held_for_compile_memory and
compile_memory_held_nanos (the conformance cost half classifies the count with the other making counts; host_ab lists
both; api_signatures.tsv +2 fields).

Verified (on the branch, msi): clippy -D warnings, runtime and conformance, all targets and features (m3-max-23004);
runtime budget/pool/flight tests 79 passed, conformance cost tests 17 (23004); the 4 compile_memory tests (m3-max-23041):
a making below the floor is not held, two large ones never hold at once, nothing overtakes a waiter and waiters go in
rank order, a waiter lends its turn and takes it again. Not run: clippy under m2v_gpu, a GPU run of the limit.
2026-11-12 15:37:50 -08:00
..