Files
metal2vulkan/docs
Anees Iqbal 6453edbea7 rt: an observing kernel runs its whole grids on its partial-threadgroups variant, one VkPipeline a size for every direct dispatch
A kernel that observes its threadgroup partition made two VkPipelines for one threadgroup size:
the plain module's for whole grids and threadgroup dispatches, and the partial-threadgroups
variant's for ragged grids. The variant already runs a whole grid as the same regions unflagged
(lower/dispatch.rs), so decide() now sends every direct dispatch the whole module would run to
the variant where the variant is lowered and takes the threadgroup whole SIMD groups. Indirect
dispatches, a refused or failed variant, and a threadgroup that is not whole SIMD groups of a
kernel that runs only whole ones (the emulated route) keep today's module. A state with a
declared bound or a required size makes one VkPipeline ahead instead of two.

Metrics::partial_variant_whole_grids counts the whole grids that ran the variant; the player's
executed counters and the conformance runner print it.

Nothing re-keys: the translations are unchanged (the plain module is still lowered: its
interface numbers the samplers, answers Metal's state and runs indirect dispatches), and no
version moves (metal2vulkan-runtime is outside RUNTIME_VERSION's inputs).
2026-11-22 04:37:34 -08:00
..