Announce device-line-ties where a driver breaks a width-1 line's diamond-vertex tie unmeasured

line_widths' wide_lines_draw_metal_s_parallelograms (and its exact-answers
twin) failed on the RTX 5080 Laptop GPU at "LANE strip 1": the
three-vertex strip at width 1, drawn in Bresenham's mode, put its
diagonal a row higher than Metal's (row 9 columns 3-4 where Metal draws
row 9 column 3 and row 10 columns 4-5, and so on, its last pixel at row
14 left out). The diagonal runs through vertices two pixels' diamonds
share; Metal covers the lower pixel, and Vulkan's diamond is open, so
the tie is the driver's with no Vulkan control over it. FAST-PATHS'
known gap "One line texel at a diamond vertex on the RTX 5080" already
said so for the conformance case primitive-type-restart-indices, but
the runtime announced nothing: a near-equivalent drawn silently.

- DriverFact::LineTiesAreMetals (appended): the driver's width-1 lines,
  as the runtime draws them, cover Metal's pixel at such a tie. Rows:
  MoltenVK on the M3 Max (APPLE9; its lines are Metal's own, the lane's
  maps pass there) and lavapipe (the conformance case: no texel differs
  on llvmpipe, LLVM 23.1.1, Mesa 26.2.4). Every other driver is
  unmeasured, so NVIDIA, RADV and ANV announce.
- Degradation::DeviceLineTies ("device-line-ties", precision): announced
  by line_route at each draw the device's lines draw at width 1 (a
  plain-width draw of lines or edges, or the nearest width where that
  is 1) on a driver without the fact. Its catalogue entry in docs/API.md,
  FAST-PATHS' known gap (now "announced"), and the conformance suite's
  NATIVE_NOTES (the device's own answer) take it.
- The lane announces it per draw, leaves such a case unchecked as it
  does the other announced routes, and holds it to the fact: never
  announced where the driver has it, announced in some case where it
  does not. degrade_notices lists LINE_TIES as its site.
- driver_facts' profile test now expects the fact on the three lavapipe
  profiles and moltenvk-m3.

Note sets: MoltenVK on the M3 Max and lavapipe take the fact, so neither
announces anything new. api_signatures.tsv gains the three items
(blessed); docs/REFUSALS.md regenerates unchanged. Not covered (left as
it was): a pipeline whose multisample state keeps Bresenham's mode off
(alpha to coverage, alpha to one, sample shading) draws the device's
default mode, which the fact does not measure. The runtime's notice 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. Build, clippy, the unit tests and the 5080 and M3
lane runs are pending (the lane fixes batch).

(cherry picked from commit 75bb1413eacbf5ef3e1a3abed7ec97eff4b1c42d)
This commit is contained in:
Anees Iqbal committed 2026-11-05 05:11:13 -08:00
1 parent 639e505b11
commit d9e3324d4e
10 files changed
+168 -29

No files matched your search

+10
View File
@@ -2940,6 +2940,16 @@ bound.
not announced. Cost: the edges' fragments are biased by another depth than Metal's, along the
edges as their slope along them differs from the triangle's, and near a vertex of a smaller depth
exponent than the triangle's largest by a smaller unit.
- `metal2vulkan-degrade-device-line-ties` (precision). `DeviceLineTies`: A draw whose lines, or a
triangle's edges in fill mode `Lines`, the device's own lines draw at width 1 (Metal's default
width, or the nearest width a device without `wideLines` draws), on a driver without
`DriverFact::LineTiesAreMetals` (measured: MoltenVK on the M3 Max, lavapipe). Metal rasterizes a
line by the diamond-exit rule and covers the lower of two pixels whose diamonds share a vertex
the line runs through; Vulkan's diamond is open, so neither pixel is required there and the
driver chooses (NVIDIA's 615.71.09 on the RTX 5080 Laptop GPU covers the upper one). Cost: a line
through a vertex two pixels' diamonds share covers the pixel the device chooses, where Metal
covers the lower one, so such a pixel, and the rest of a line that runs along such vertices, can
lie a row or a column from Metal's.
- `metal2vulkan-degrade-provoking-vertex-lines` (precision). `ProvokingVertexLines`: A draw of
lines, or an emulated mesh draw of lines, under Apple's last provoking vertex
(`setProvokingVertexMode:` 1), of a pipeline state that reads it (a flat input, or a slice or