From b9e8caacce3f389617d4d80e31df794bcf9fb2f3 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Wed, 25 Nov 2026 11:55:52 -0800 Subject: [PATCH] Probe: the padding past a module's wrapper is 8 or 12 bytes What: the probe's header said 8 bytes; in m3-max-73748 the fragment module of one run was padded by 12. Verified: read from m3-max-73748's output. --- .../probes/metallib_without_entry_tags.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/metal2vulkan-conformance/probes/metallib_without_entry_tags.m b/crates/metal2vulkan-conformance/probes/metallib_without_entry_tags.m index 62921ad1d..3a9d9a89a 100644 --- a/crates/metal2vulkan-conformance/probes/metallib_without_entry_tags.m +++ b/crates/metal2vulkan-conformance/probes/metallib_without_entry_tags.m @@ -38,8 +38,9 @@ // // - as-is: header 2.9, every entry NAME, TYPE, HASH, MDSZ, OFFT, VERS. Each of the four modules // is a bitcode wrapper padded to a multiple of 16 bytes, the next written after it; MDSZ is -// the distance to the next module's start (or the section's end), 8 bytes past the wrapper's -// offset plus size, and HASH is the SHA-256 of those MDSZ bytes, not of the wrapper's alone. +// the distance to the next module's start (or the section's end), 8 or 12 bytes past the +// wrapper's offset plus size, and HASH is the SHA-256 of those MDSZ bytes, not of the +// wrapper's alone. // The extended header is ENDT alone. Library, functions, both kernels' words and the texel as // expected; // - v2.2, no-MDSZ, no-MDSZ-shift, no-MDSZ-v2.2: the same answers as as-is: Metal makes the