Record the M3's heap half reads in the MetalHalfConversion measurement

What: the MetalHalfConversion paragraph of the driver-facts record now states the gate lane's
result on the M3 Max: a heap's `half` read of every code of the five forms it holds by raw texels
(BGRA10_XR, BGR10_XR, R16Bfloat, RG16Bfloat, RGBA16Bfloat) is the nearest even half of the same
read as float, and the slot's half read, in all 262,144 channels of each.

Why: the previous commit counts a decoded texel's half rounding as the measured conversion; this
is the run that measures it.

Verified (potluck m3-max-438, --gpu m3max, MoltenVK 1.4.2, at 020e8fd919):
runtime_lane::(heap_extended_reads|half_conversions|alpha_in_red)::, 17 tests, 17 passed;
HEAP-HALF-ROUNDING lines: 0 of 262144 channels for each form, note false. CPU job m3-max-352
(same commit): clippy --all-targets --all-features -D warnings plain and --cfg m2v_gpu, the
touched core tests (99 passed) and the gpucfg validation build.

(cherry picked from commit f8e0383243bdfbc80d4dae0c98a53d123ff6c95a)
This commit is contained in:
Anees Iqbal committed 2026-11-05 02:08:27 -08:00
1 parent 5e87ad8325
commit 308e0728b8
1 file changed
+3 -1
@@ -458,7 +458,9 @@ pub(crate) fn among<F: Copy + Ord>(
/// `runtime_lane::heap_extended_reads::heap_half_reads_of_every_code_round_their_float` reads every
/// code of the five forms a heap holds by its raw texels that the runtime makes, as `half` through
/// an argument buffer, against the nearest even `half` of the same read as `float` and the slot's
/// `half` read. One row per GPU, as measured.
/// `half` read: on the M3 Max under macOS 27.0.1 (2026-11-05), none of the 262,144 channels of
/// `BGRA10_XR`, `BGR10_XR`, `R16Bfloat`, `RG16Bfloat` and `RGBA16Bfloat` each differs. One row per
/// GPU, as measured.
///
/// `MetalSmallFloatNans`: MoltenVK 1.4.2 hands a storage image write to Metal's own texture
/// write. On the M3 Max under macOS 27.0.1 (2026-11-03), byte for byte against plain Metal, a