Files
metal2vulkan/crates
Anees Iqbal 508e9249cd clear_reach: a half NaN clear holds the device's NaN, announced, beside Metal's green
What the device does: ANV on the Iris Xe (Mesa 26.2.6) stores the clear
(NaN, 1.0, 0.5, NaN) of an RG16Float attachment as 0xfe00 in red, where
Metal stores its canonical quiet NaN 0x7e00 (development's Iris leg,
m3-max-10311 at 846f2112f5).

Why the old expectation was wrong: it demanded 0x7e00 through an integer
scratch clear the runtime no longer makes. Under the native-arithmetic rule
the clear value goes to the device's conversion, and the runtime announces
device-nan-encoding for every half NaN clear (nan_clear::degrade_nan_clears).
The test now takes, in each texel the clear reaches, a half NaN of any
encoding in red with Metal's 0x3c00 in green. Every other texel keeps its old
bytes exactly, and the notice must be announced on every device. It prints
how many texels hold the device's NaN (NAN-CLEAR).

Verified: the Iris run follows.
(cherry picked from commit 5c254fccdeefb567f1836f9d4831a058ad25166d)
2026-11-08 20:16:04 -08:00
..