From 0a7a446fa101dc030f2db51ded14078a17477e18 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Wed, 2 Dec 2026 09:04:38 -0800 Subject: [PATCH] Harness: its gauges name what they hold, with level elements, timestamp pools and buffer set pools named()'s doc said it held every count of an object kind the runtime keeps live; it held 15 of them. It now says what it holds: the kinds a compute workload makes or reaches, and the render contents and attachment views, which none makes; the kinds only draws, passes, surfaces, imports, exports and indirect command buffers make are a replay's gauge records. It adds the three of those kinds a compute workload reaches: level_elements (a texture's levels' storage elements), timestamp_pools (the command buffers' GPU time queries) and buffer_set_pools (a dispatch's bound buffers' descriptor sets). Each is recorded at the 100th and 200th runs and at device drop, as the others are. Verified: in the hand-over. --- crates/metal2vulkan-harness/src/rt.rs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/crates/metal2vulkan-harness/src/rt.rs b/crates/metal2vulkan-harness/src/rt.rs index 73db61000..c3b6ae905 100644 --- a/crates/metal2vulkan-harness/src/rt.rs +++ b/crates/metal2vulkan-harness/src/rt.rs @@ -898,13 +898,20 @@ impl crate::ComputeCommandEncoder for rt::ComputeCommandEncoder { } } -/// The gauges the harness reports, by name: every count of an object kind the runtime keeps -/// live, so the matrix's `@drop` check and its reading between the 100th and 200th runs cover -/// each kind. The byte and age gauges, which move with load, and the thread ids are left out. +/// The gauges the harness reports, by name, which the matrix's `@drop` check and its reading +/// between the 100th and 200th runs cover: the counts of the object kinds a compute workload +/// makes or reaches (buffers, textures and their levels' elements, samplers, pipeline states and +/// their compiled contents and variants, command buffers, their timestamp query pools and bound +/// buffers' descriptor set pools, set 1's slots, memory blocks and events), and the render +/// contents and attachment views, which none of its workloads makes. The kinds only draws, +/// passes, surfaces, imports, exports and indirect command buffers make are a replay's +/// (`metal2vulkan-validation`'s gauge records of a play). The byte and age gauges, which move with +/// load, and the thread ids are left out. fn named(gauges: rt::Gauges) -> Vec<(&'static str, u64)> { vec![ ("buffers", gauges.buffers), ("textures", gauges.textures), + ("level_elements", gauges.level_elements), ("samplers", gauges.samplers), ("lod_clamp_variants", gauges.lod_clamp_variants), ("pipelines", gauges.pipelines), @@ -914,6 +921,8 @@ fn named(gauges: rt::Gauges) -> Vec<(&'static str, u64)> { ("render_contents", gauges.render_contents), ("attachment_views", gauges.attachment_views), ("command_buffers", gauges.command_buffers), + ("timestamp_pools", gauges.timestamp_pools), + ("buffer_set_pools", gauges.buffer_set_pools), ("descriptor_slots", gauges.descriptor_slots), ("blocks", gauges.blocks), ("events", gauges.events),