Files
metal2vulkan/crates
Anees Iqbal 0a69fd88a4 line_widths: the refused band's lines run through pixel centres, where Metal's width-0 lines draw
On Iris Xe (ANV, RPL-P) a_refused_band_draws_at_the_nearest_width failed at round 0's line:
'drew nothing'. The line ran from (4, 4) to (28, 4), along pixel edges. ANV's lineWidthRange
starts at 0, so the nearest width to Metal's width 0 is 1/16, which ANV draws as it is: a band
1/16 pixel wide around y = 4 holds no pixel centre. Metal draws none there either: its probe's
'horizontal y=16 width 0 (through no centre)' is 0 pixels, and 'horizontal y=16.5 x 4.5 to 27.5
width 0' 23. Devices whose nearest width is 1, or whose thin lines cover more, drew something,
which is why the case passed elsewhere.

The triangle's corners now lie on pixel centres, so each line and edge runs through centres,
where Metal's lines at width 0 draw; the test still asserts the draw drew, routed to the nearest
width and announced.

Verified: built and run on Iris in the job that carries this commit (reported with the tip).
(cherry picked from commit d733ab2c25d0fd177ecfd9f2f202ebaf3214e525)
2026-11-08 22:17:30 -08:00
..