write() (kernel and fragment) into YCBCR8_444_2P_sRGB (523) and YCBCR10_444_2P_sRGB (527) over a
surface plane, and such a texture as a render attachment, were refused (the encoding unknown).
Metal's bytes, measured on an M3 Max (macOS 27.0.1; 8 colours, kernel write, fragment write and
Clear+Store over 444v/x444 surfaces), fit one reading exactly: each channel is sRGB-encoded first,
then converted as the non-sRGB twins 503/507 convert (here BT.601 video range). Metal's own paths
differ by one code on one 10-bit luma (kernel 696, pass 697).
- metal::format: ycbcr_writes_stored and ycbcr_renders take 523/527; the 4:2:0 and 4:2:2 sRGB
twins stay refused (unmeasured).
- bind::ycbcr_write: one shape word, SRGB: per channel the pass's half (pass only), then
lower::arith::pack::srgb_encode (the device's Pow), then the existing grid step and rows. The
device's float curve is the conversion we implement (no sRGB view can store a matrix
combination of encoded channels); no PrecisionNote: any difference is within Metal's own
one-code spread.
- A pass that Loads a twin is refused at its start, and a pipeline that blends into one at its
attachment, both NotImplemented(Format) (Metal's load and blend of the twins unmeasured).
REFUSALS.md regenerated (Format sites 124 -> 125).
- CPU references ycbcr_write/ycbcr_store encode the twins by the same f32 steps.
Verified (msi, lavapipe, m3-max-29687 at db17bcce16): clippy (metal2vulkan, runtime, validation,
--cfg m2v_cpu_icd) 0; translator tests 13/13 (reference and interpreter give Metal's eight
colours for 523/527); lavapipe 14/14 (lane ycbcr_srgb_twins: both planes against Metal's table
for kernel, fragment and Clear+Store, one code allowed on the 10-bit luma only; load and blend
refusals; the 503/507/542/545 tests unchanged). Negative control (SRGB word forced to 0,
m3-max-29701): the CPU test and the kernel, fragment and pass tests fail on grey,
(0.2,0.6,0.9) and (0.9,0.3,0.1).