What: a half read of a texture an argument buffer holds, whose class arms read a member of
another numeric class (Read::heap_cross), now hands its merge each arm's half bits in u32 lanes
(narrow::to_bits: a sibling's noted bits, its words' low 16; the own arm's texel narrowed by the
device), zero where the handle is null, and widens the merged bits once after the merge
(narrow::from_bits). Before, each arm widened its half and selected it against the null handle's
zero, and the merge carried the texel structs of those floats. emit::read is split into
read_texel (the texel, the handle's liveness, the status word) and the null select and status
word, which read_crossed's half arms apply to the bits instead. The read's word estimate counts
the arms' narrowing and the widening. SEMANTICS_VERSION 1966: the SPIR-V of every such read
changes on every profile.
Why: the stack 28 gate's M3 lane
runtime_lane::cross_class_reads::argument_buffer_cross_class_reads_are_the_native_words, run with
a texel's half rounding counted as measured, answered 0x7e00 where the slot's read keeps an
integer texel's NaN bits (R8Sint, RGBA8Sint, RG16Sint, RGBA16Sint, RGBA32Sint, RGBA16Uint and
RGBA32Uint as half, 66 of 2170 lanes). The module (the lane's held half read, translated through
the CLI on moltenvk-m3 at a1c2a5f52e) merged OpPhi %_struct of
OpSelect(live, OpFConvert(bits as half), 0) from the Sint and Uint arms with the own arm's
texel, then narrowed the extracted float for the store: the merge of a widened half selected
against zero with another widened value that Metal's compiler does not fold back to the bits
(narrow::merges_mixed_selects' measurement: 2045 of 2046 NaNs 0x7E00), which the analysis did
not see through the struct. With the bits merged as integers, the value after the merge is the
slot's shape (the words' low 16 bits widened, then moved and stored), which keeps every NaN's
bits on the M3. The NativeHalfConversion the module recorded for its texel roundings had been
letting the lane accept those NaNs.
Verified: pending in this commit; the next commits' jobs build and run it (the new core test
engine_cross_class::an_argument_buffer_half_read_merges_its_arms_bits: a u32x4 phi and no texel
struct phi for a half read on every committed profile with a sampled heap, a struct phi for a
float read, inside the word estimate, L3).
(cherry picked from commit 3e9fedbf34cb1ff78f7a32c2322fdd67b5fc36db)