line_widths' wide_lines_draw_metal_s_parallelograms (and its exact-answers
twin) failed on the RTX 5080 Laptop GPU (NVIDIA 615.71.09, b5080 entries
nvlane-lane2-a2f and nvlane-lane3-a2f at a2f4c50f94) and on lavapipe
(llvmpipe, LLVM 23.1.1, Mesa 26.2.4, nvlane-lvplines-a2f) at "rows
offset by (r - 32) / 512 width 0": both drew the map's rows 18 to 49
where Metal draws 17 to 48. Before a5e1d20bd9 the 5080 failed earlier in
that test, at "LANE strip 1", so this case had not run there.
The case draws lines at y = r + 0.5 + (r - 32) / 512, which the band
draws at width 1/16 (half width 16/512). band.rs leaves the corners'
snap to 1/256 pixel to the device's rasterizer, where Metal snaps the
endpoints first, a half step rounded up, and offsets them after; the two
agree on the grid, and for odd r the endpoint lies half a step off it.
Half steps rounded down give the device's map exactly: odd r covers its
row for r in 19..49 and even r for 18..48, against Metal's 17..48 (round
to even gives the same rows here). The band's arithmetic is exact at
these values (side 64, every conversion a power of two), so the rounding
is the rasterizer's, which Vulkan leaves to the implementation: the
device's own answer, so it is announced, not emulated.
- DriverFact::SubpixelSnapIsMetals (appended): the driver's rasterizer
snaps a vertex half a step off its 1/256-pixel grid as Metal snaps a
line's endpoint, up. Row: MoltenVK on the M3 Max (APPLE9), where this
lane's maps pass (a2f4c50f94, m3-max-994: 1847 of 1847). NVIDIA and
lavapipe drew otherwise, so neither takes it; every other driver is
unmeasured.
- Degradation::DeviceSubpixelSnap ("device-subpixel-snap", precision):
announced by line_route at each draw the band draws on a driver
without the fact. Its catalogue entry in docs/API.md, a FAST-PATHS
known gap, and the conformance suite's NATIVE_NOTES (the device's own
answer) take it. band.rs's and line_width.rs's docs say where the two
snaps differ.
- The lane announces it per draw; a band case with a vertex an odd
multiple of 1/512 pixel off (in framebuffer pixels) is left unchecked
where it is announced, and every other band case is still compared
with Metal's map. Held to the fact: never announced where the driver
has it, and some case unchecked where it does not and the device
tessellates. degrade_notices lists SUBPIXEL_SNAP as its site.
- driver_facts' profile test expects the fact on moltenvk-m3.
Note sets: MoltenVK on the M3 Max takes the fact, so it announces
nothing new. NVIDIA, lavapipe, RADV and ANV now announce
device-subpixel-snap at band draws. api_signatures.tsv gains the three
items (blessed); docs/REFUSALS.md regenerates unchanged. driver_facts.rs,
degradation.rs and line_width.rs are runtime pin inputs, so
RUNTIME_VERSION and the pin are the orchestrator's to move.
Verified: cargo fmt; scripts/api-signatures --check after --bless;
refusal_surface.py. Builds, clippy, the unit tests and the 5080, M3 and
lavapipe lane reruns are in the next jobs.
(cherry picked from commit 2574f4bb084656035feae4ef714bac96f720f497)