Pulled normalized fields (vertex, [[stage_in]], post-tessellation) take the device's product,
and a post-tessellation pulled read records its NaN note as the vertex and stage-in reads do.
One work packet, landed as 2 commits on archive/development-linear-2026-10-29, in order:
* Decode a pulled normalized vertex field by the device's reciprocal product (33a8839b7c)
The owner's ruling of 10-29: no exact emulation where the GPU has a native
answer. A normalized field the shader pulls (a vertex attribute fixed-function
input cannot fetch, a kernel's [[stage_in]] attribute, a post-tessellation
function's) was Metal's correctly rounded quotient via exact_division::div_exact.
It is now the device's product float(c)*float(1/m), rounded once, the signed one
max(., -1), as fixed-function fetch already converts it (78ed264c90).
The product is within one f32 ulp of Metal's quotient: 126 of 256 8-bit unsigned
codes one ulp high; 16 signed 8-bit, 24 unsigned 10-bit, 512 unsigned and 1,536
signed 16-bit codes one ulp toward zero; 0, the maximum and -1 exact.
Int1010102Normalized stays exactly Metal's (Metal computes the same product).
Read as half, only 16-bit fields differ, at four codes.
fetch::conversion_notes records PrecisionNote::DeviceVertexConversion on every
profile where the product misses Metal's answer, at the vertex, stage-in and
tessellation pulled reads. Updated: the note's docs, the runtime Degradation
doc, the docs/API.md catalogue entry, the FAST-PATHS row, and known-gaps.tsv
rows for the M3 (constant step, stage-in) and llvmpipe (stage-in) 8-bit
unsigned sites; CONFORMANCE-COVERAGE.md regenerated. SEMANTICS_VERSION 1915.
Verified: fetch unit tests 13/13, including a decode that is FMul with no
UDiv/FDiv and an exhaustive note-versus-Metal check; restoring the old decode
fails 5 of them. Engine constant-step sweep on moltenvk-m3 notes 18 float4 and
8 half4 formats. Clippy (plain and m2v_gpu) and rustdoc clean; golden hashes
unchanged. On the Apple M3 Max: runtime_lane normalized_vertex_fetch 3/3 (its
legs take fixed-function fetch there); conformance replay of
vertex-format-constant-step and attribute-format-fetches (shader-pulled on the
M3: 10 sites read 0x3efeff00 where Metal reads 0x3efefeff, the note accepted)
exits 0 with the new rows; float4/half4/instance-step/class-crossings
unchanged. llvmpipe stage-in rows expected, not run.
* Record a post-tessellation pulled read's NaN note as the vertex and stage-in reads do (397e431a36)
A post-tessellation function's pulled attribute decodes through the same fetch::decode as a
vertex function's and a kernel's [[stage_in]] attribute's, so a narrow float format (a half
format, FloatRG11B10) read as float widens its NaN by the device's bits where Metal answers
0x7fc00000. The vertex and stage-in reads recorded PrecisionNote::DeviceNanEncoding for it;
lower::tessellation's pulled_read recorded only DeviceVertexConversion, so such a function's
artifact under-stated its difference from Metal.
The two note rules are now one function, fetch::decode_notes (DeviceNanEncoding for a narrow
float read as float, DeviceVertexConversion where the normalized product misses Metal's), which
all three pulled reads call; narrow_float_nans and conversion_notes are gone. The NaN note's doc
names the three reads. SEMANTICS_VERSION 1920: a precision note of an
artifact changes under an unchanged key.
Test: engine_tessellation::a_patch_attribute_s_decode_records_the_vertex_fetch_s_notes gives the
fixture's per-patch float4 tint a Half4 (DeviceNanEncoding), UChar4Normalized
(DeviceVertexConversion) and Float4 (neither) format on every committed profile with
tessellationShader. Restoring the pre-fix behaviour (the tessellation read recording only the
normalized note) fails it at Half4; restored, it passes.
Verified: nextest engine_tessellation, lower::stage_io, lower::tessellation,
engine_kernel_stage_in, engine_vertex_fetch, engine_vertex_variants, fast_paths and
api_signatures: 85/85.