From 2953064a1cd4bf56d7a440f5396dc30ea51a64b7 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sun, 22 Nov 2026 11:39:49 -0800 Subject: [PATCH] Runtime README: a stage fill's memory follows the threadgroup size; one kernel refused at 1,024 on the Iris Xe What: one paragraph in Kernels past the stage bound. A fill's memory follows the threadgroup size its pipeline is made at; on the Iris Xe of RPL-P one emulated module of weight 46,491 took 794 MiB at 1 thread a threadgroup, 2,630 MiB at 32 and passed the 3,072 MiB cap at 1,024, where the pipeline is refused. Why: an open gap a guest can meet (the planner ranks it a bug: an app that fills the threadgroup is the ordinary Metal pattern), recorded where a reader of the runtime meets it. A probe of a form that removes it is under way; this line changes with it. Verified: m3-max-68473 (Iris Xe, Mesa 26.2.6; the same words, SHA-256 d5a653c7, in every arm, only the workgroup-size specialization differing; A B C A B C from empty caches: 794/792 MiB, 2,630/2,630 MiB, killed at 3,108/3,250 MiB after 46.1/46.3 s; the peak is the helper process's VmHWM and VmRSS sampled every 20 ms). Docs only. (cherry picked from commit cd7716adb066a036e4a2f9f27684d0310b886029) --- crates/metal2vulkan-runtime/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/metal2vulkan-runtime/README.md b/crates/metal2vulkan-runtime/README.md index 8439cd2bb..0f2e9d18a 100644 --- a/crates/metal2vulkan-runtime/README.md +++ b/crates/metal2vulkan-runtime/README.md @@ -2969,6 +2969,13 @@ subgroup mode is planned again keeping that mode pinned: the re-plan takes the p it weighs less than the emulated one by the stage weight; otherwise the emulated one goes on. The one taken compiles in the process where it is under the bound, and in the helper where it is not. +A fill's memory follows the threadgroup size its pipeline is made at, as the workgroup size is part +of what the driver compiles. On the Iris Xe of RPL-P (ANV, Mesa 26.2.6) one emulated module of +weight 46,491 took 794 MiB in 18.5 s at 1 thread a threadgroup and 2,630 MiB in 57.7 s at 32, the +state's execution width; at 1,024, its `max_total_threads_per_threadgroup`, the helper passed the +consumer's 3,072 MiB cap after 46 s and the pipeline was refused (job m3-max-68473, twice of two). +So a kernel whose fill fits at its execution width can be refused at a larger threadgroup. + Render stages have a bound of their own, 99,109, as no helper compiles a render stage: a render pipeline with a stage past it is refused (Known gaps of render pipeline states), and one at or under it compiles in the process that runs the program with no cap, past the kernels' bound too.