ci_step compared its chain's middle on the device with the same chain on a
CIContext made with kCIContextUseSoftwareRenderer. On macOS 27 that option
gives a Metal context on the default device (its description reads
"(metal 1) MTLDevice=..." on the M3 Max): the reference ran on the device
under test, so a write the device lost would be lost on both sides and pass.
No formula of ours is known for the chain's filters (colour controls, sepia
tone, Lanczos), so the comparison goes rather than being replaced. The two
checks that need no second path stay: the middle must not be one colour, and
a CPU-made gradient's HEIC round trip must come back within 8 levels. The
sweep's Core Image cases check filters against formulas computed on the CPU.
ci_step runs a Core Image chain over a desktop picture on the default Metal
device (blur, colour controls, sepia, Lanczos), times it, and checks its pixels
against the same chain on Core Image's software renderer. The earlier step it
replaces printed OK whatever the pixels were, and on the reims-graphics lane the
picture had been reading back black since a decode's writes stopped reaching
its surface, unseen.
The software leg decodes the picture through ImageIO in the same process, and
with a Metal device ImageIO converts a HEIC's planes on that device, so a lost
decode reads black on both legs. Two more checks catch it: the result's middle
must hold more than one colour, and a gradient made on the CPU must come back
from a HEIC round trip within 8 per channel on average (0.5 when right, 127.5
when the conversion's writes are lost).