Files
metal2vulkan/docs
Anees Iqbal 9fe1b0175f Key the compressed shape's clear route in the extended-range and bfloat clear checks
A clear takes Metal's straight route only where nan_clear::keeps_nan_sign holds (render.rs),
which the fresh-texture key now makes false on a device that presents a Mac keeping no texture
compressed: there a 16 x 16 plain target is not compressed, so it clears through half, as
Metal's uncompressed targets do (expected, not measured on such a Mac). Three checks still
expected the straight route there and failed on the RTX 5080 Laptop at fd34a10316:

- conformance xr-clear-routes-{bgra10xr,bgra10xr-srgb,bgr10xr,bgr10xr-srgb}: divergent at
  case/plain-16/texels/0..3 alone (15 sites), unlisted, in the replay of job m3-max-120; the
  baseline replay at 0b556ddfd6 (job m3-max-141) held none of them (its other 908 unlisted gap
  sites are the same in both runs). ClearRoutes now declares
  replay::without_compression("plain-16").
- validation runtime_lane::extended_range_targets::clears_take_metal_s_route (15 clears
  differ, all the 16 x 16 draws-false shape) and runtime_lane::bfloat_targets::
  bfloat_clears_take_metal_s_route (11, all that shape), suite job m3-max-124: each now expects
  ClearRoute::Straight for that shape only where DeviceProperties::lossless_compression holds,
  else ThroughHalf.

docs/API.md's accepted difference says the clear route too, and keeps_nan_sign's doc says it
decides the route.

Verified on the M3 Max, no device: nextest metal2vulkan-conformance 1011/1011; cargo clippy -D
warnings on validation and conformance with --cfg m2v_gpu (all targets, all features);
docs/CONFORMANCE-COVERAGE.md re-derives unchanged. UNVERIFIED: none of the three has run with
this commit on the 5080 or the M3.

(cherry picked from commit 1c042263e5fee942b79fbd30042c2dc9f222b61b)
2026-11-05 02:08:30 -08:00
..