Revert counting a texel's half rounding as measured on MetalHalfConversion profiles

This reverts the stack's pick of 384734851d ("Count a texel's half rounding as the measured
conversion on MetalHalfConversion profiles"); SEMANTICS_VERSION goes to 1965, since the recorded
notes change back.

The stack 28 gate's M3 lane run failed
runtime_lane::cross_class_reads::argument_buffer_cross_class_reads_are_the_native_words: an
argument buffer's half read of an integer texture (R8Sint, RGBA8Sint, RG16Sint, RGBA16Sint,
RGBA32Sint, RGBA16Uint, RGBA32Uint; 66 of 2170 lanes) answers the device's quiet NaN 0x7e00 where
the slot's read of the same texel keeps its bits (0xfff5 and the like). The heap read rounds its
texel through float, and that rounding's narrowing no longer recorded NativeHalfConversion on
moltenvk-m3, so the stage carried no note that leaves a half NaN's bits to the device (the notes
were SetPastLayoutSupport, DeviceNanEncoding and HalfTexelConversion). The commit's measurement
covered the extended-range forms' codes, not an integer texel's bits read as half. Until a fix
keeps those bits or notes them, the note stays as it was before the change.

The doc conflict in driver_facts.rs (a later pick's measurement paragraph for the reverted rule)
takes the text from before the change.

Verified: not yet; the gate reruns the core suite and the M3 lanes on this tree.
This commit is contained in:
Anees Iqbal committed 2026-11-05 02:46:28 -08:00
1 parent 4edc720908
commit 5dbf6f3be3
11 files changed
+24 -317

No files matched your search

+6 -9
View File
@@ -3618,15 +3618,12 @@ bound.
zero of its sign. **Exempt:** on a profile that takes `DriverDeviation::MetalHalfConversion`,
MoltenVK on Apple's GPUs of the Apple M3 Max's macOS 27 identity, a module whose every `half`
rounded through the conversion converts a `float` the function holds (an AIR `fptrunc` or
`air.convert` from `float`) or a texel's value records no note for that rounding and requires
`VkProperty::MetalHalfConversion`: measured word for word against plain Metal, with and without
fast math, over 1,173,760 `float`s loaded, summed, multiplied, divided and fused, an integer's
quotient, and every texel of ten formats read, sampled and gathered as `half`. A texel's value
includes one the module decodes itself (an extended-range or bfloat code) and a heap read's merge
of its fetched texel and its decode routine's; where Metal's `half` texel is not that rounding of
the value the access records `half-texel-conversion` (outright for an argument buffer's texture)
or `device-pack-conversion` (a decoded texel). A `half` operation or function computed in `float`
and rounded keeps the note (Metal's `half` `tanh` answers 7 of the 65,536 `half`s otherwise).
`air.convert` from `float`) or an image instruction's texel records no note for that rounding and
requires `VkProperty::MetalHalfConversion`: measured word for word against plain Metal, with and
without fast math, over 1,173,760 `float`s loaded, summed, multiplied, divided and fused, an
integer's quotient, and every texel of ten formats read, sampled and gathered as `half`. A `half`
operation or function computed in `float` and rounded keeps the note (Metal's `half` `tanh`
answers 7 of the 65,536 `half`s otherwise).
- `metal2vulkan-degrade-native-half-quantize` (precision). `PrecisionNote::NativeHalfQuantize`:
Native half rounding (a quantize): the module rounds a `half` result it computes in `float` (a
`half` operation's, a function's, a conversion from `float`'s, a texel's) by the device's