From 0e2c70f08f52ce82105be80a3d182fd445f757e3 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sat, 7 Nov 2026 09:31:34 -0800 Subject: [PATCH] Cost: binary-archive-sources' record with its contrast, ratio 0 over 2 binary-archive-sources had no bounds on record, so the gate held none of its counts and its pipelines-per-state ratio sat unrecorded. This writes its record from a whole-set `cost --runs 8 --write` on the M3 Max, with the contrast of the case alone, and keeps only this case's record. The ratio is stable: two whole-set reads on the M3 Max at 4192d7ffd1 (job m3-max-4205) agree, each 0 pipeline(s) over 2 state(s), 0.000 each (read 1 with nothing written, read 2 the write). The case alone (8 runs, nothing before it on the device) reads the same ratio and moves three counts the case set does not: device_memory_allocated 201326720, functions_translated 1, stage_entries_specialized 1, now under `composed`; pipeline_layouts_made, pooled_memory_blocks_made and shader_modules_made are the ceilings. Verified: `cost --check` against the records with only this file changed (same job) reports no difference for binary-archive-sources. Its 9 load-bearing differences are attribute-stride-inline-bytes, attribute-stride-vertex-buffer and stage-in-unread-attributes, whose records another branch re-records. The record file is unchanged between 4192d7ffd1 and c418a1f55b, so this commit sits on c418a1f55b. (cherry picked from commit 887c7fd95d0653d7cd3e5ca62e7591112038f90a) --- .../recordings/binary-archive-sources.json | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/crates/metal2vulkan-conformance/recordings/binary-archive-sources.json b/crates/metal2vulkan-conformance/recordings/binary-archive-sources.json index ac1ea4363..546c24b17 100644 --- a/crates/metal2vulkan-conformance/recordings/binary-archive-sources.json +++ b/crates/metal2vulkan-conformance/recordings/binary-archive-sources.json @@ -309,7 +309,30 @@ "runs": 8, "measured": "8 run(s) of the whole selection on Apple M3 Max, in the case set's own order, the largest each count reached", "contrasted": "8 run(s) of each case on its own on Apple M3 Max, nothing before it on the device, the largest each count reached", - "bounds": {} + "bounds": { + "device_memory_allocated": 201326720, + "functions_shared": 1, + "functions_translated": 1, + "pipeline_layouts_made": 1, + "pooled_memory_blocks_made": 3, + "shader_modules_made": 1, + "stage_entries_specialized": 1, + "variants_taken_back": 1 + }, + "composed": { + "device_memory_allocated": 201326720, + "functions_translated": 1, + "stage_entries_specialized": 1 + }, + "ceilings": { + "pipeline_layouts_made": 1, + "pooled_memory_blocks_made": 3, + "shader_modules_made": 1 + }, + "per_state": { + "pipelines": 0, + "states": 2 + } } ], "times": [