The 780M lane's red (19 answers, all RGB9E5Float blends at 2 and 4 samples on RADV PHOENIX,
Mesa 26.2.6) is the device's own blend arithmetic: RADV hands its blend an RGB9E5Float source
whose channels and alpha are halves rounded toward zero (a value past 65504 as 65504), where
Metal blends the floats. Vulkan asks a blend for no more precision and range than the
attachment's, which a half meets. Rule 1: the device's native blend is the only form, so no
path computes Metal's bits; the blend already records and announces device-color-conversion
(ChannelWrite::Device for a blend of factors other than one and zero).
The model, run offline over the lane's inputs (the probe's generator) and Metal's table:
- Metal's words are the f32 blend over Metal's stored samples, truncated to the format
(32/32, 64/64);
- RADV's 11 failing sample words are the blend of halves rounded toward zero over Metal's
stored samples, truncated, in 10 of 11. The eleventh (4 samples, pixel 7 sample 3) blends
over a sample RADV's fill stored a code from Metal's;
- Metal's RGB9E5Float resolve is the crate-owned resolve's rule (f32 mean, nearest half,
mantissas rounded half up) in 64/64 pixels. RADV's 8 failing blend resolves are that rule
over the model's samples in 7 of 8.
The lane now, where the device is RADV and holds RGB9E5Float in its own format:
- checks each blended sample against that blend's word over the device's own stored sample,
within a code (half_blend);
- checks the blend's resolve within a code of Metal's resolve of the device's samples
(shared_exponent_resolve);
- prints how many of the samples' model words are not Metal's;
- requires device-color-conversion to be announced.
Elsewhere it keeps Metal's bound.
The note's declaration, API.md's entry and the comparison table's doc record the measured
size: 30 of 96 blended samples not Metal's, up to 33 units of the larger value's last
mantissa bit where the source passes 65504, and 7 where the half's alpha weighs a destination
far larger than the source.
Verified so far: the offline model above. The lane on PHOENIX is pending.
(cherry picked from commit 0fb6dcf07456cf7531021bb70fbe7eea64dadbb0)