From 308e0728b889386cd9d760fb075ab68f30319092 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Wed, 4 Nov 2026 22:42:28 -0800 Subject: [PATCH] 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) --- crates/metal2vulkan/src/device/driver_facts.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/metal2vulkan/src/device/driver_facts.rs b/crates/metal2vulkan/src/device/driver_facts.rs index fd3a56074..dbd8dd208 100644 --- a/crates/metal2vulkan/src/device/driver_facts.rs +++ b/crates/metal2vulkan/src/device/driver_facts.rs @@ -458,7 +458,9 @@ pub(crate) fn among( /// `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