Files
metal2vulkan/crates
Anees Iqbal bca06b344d Probe: Metal takes a metallib without MDSZ, and no function without the other entry tags
What: the answers job m3-max-73748 measured with
probes/metallib_without_entry_tags.sh (an M3 Max, macOS 27.0.1), written
into the probe's header.

Why: they decide which of the reader's required entry tags a library may
lack. Metal makes a library whose entries carry no MDSZ, at header 2.9 and
2.2, and runs its kernels and its render pipeline as written. Without NAME
it makes no function; without TYPE newFunctionWithName: ends the process;
without HASH it answers with code compiled for another library; without
OFFT every function reads the first module; without VERS every pipeline
fails. In Apple's own output each MDSZ is the distance to the next
module's start, its padding counted, and HASH covers those bytes.

Verified: m3-max-73748, every case with MTL_DEBUG_LAYER=1 and without
(the runner exits 1 because no-TYPE ends its processes).
2026-11-25 12:25:48 -08:00
..