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.
This commit is contained in:
Anees Iqbal committed 2026-11-25 12:25:48 -08:00
1 parent bca06b344d
commit b9e8caacce
1 file changed
+3 -2
@@ -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