From 21fa95cbdd07aa752664e5a8aaa23d4780e9e3cb Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sun, 8 Nov 2026 14:15:37 -0800 Subject: [PATCH] host_ab percall: hold a dispatch to 6.2 allocations, what it makes now With a dispatch's uses made over the last dispatch's storage and its group counts listed only inside a predication unit, the gate's dispatch group makes 6.13 heap allocations a call on the M3 Max (MoltenVK) where the row held 8.2 (8.13 measured at the 11-03 re-bless, 10.16 at a1ca5c673f). The row moves to 6.2, so the two allocations cut stay cut. (cherry picked from commit fba5723eb6360658aecf6667516430d588641176) --- crates/metal2vulkan-runtime/examples/host_ab/percall.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/metal2vulkan-runtime/examples/host_ab/percall.rs b/crates/metal2vulkan-runtime/examples/host_ab/percall.rs index 6f36162ca..83ca37132 100644 --- a/crates/metal2vulkan-runtime/examples/host_ab/percall.rs +++ b/crates/metal2vulkan-runtime/examples/host_ab/percall.rs @@ -417,9 +417,10 @@ const HELD: [(&str, &str, f64); 46] = [ ("end_render", "allocs", 24.0), ("end_compute", "allocs", 7.0), ("end_blit", "allocs", 7.0), - // A dispatch records one dispatch command, at the call (8.13 allocations measured). + // A dispatch records one dispatch command, at the call (6.13 allocations measured): its uses + // over the last dispatch's storage, and no group counts outside a predication unit. ("dispatch", "rt_dispatches_at_call", 1.0), - ("dispatch", "allocs", 8.2), + ("dispatch", "allocs", 6.2), // A heap texture's image takes its storage from the heap: one image and one binding, and no // allocation of memory of its own. ("heap_texture_256", "rt_vk_images_made_at_call", 1.0),