From 4ee54fa3190fa4757b7dc5cf96103a98afa06b93 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sun, 8 Nov 2026 20:13:39 -0800 Subject: [PATCH] line_widths: the LINES-NEAREST line names the pixels and the width alone The line also prints for the triangle's edges, where Metal's 23 pixels of the horizontal line are not the comparison. (cherry picked from commit c05e75e4f54883fe5666198180ee2cc17679159d) --- crates/metal2vulkan-validation/src/runtime_lane/line_widths.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/metal2vulkan-validation/src/runtime_lane/line_widths.rs b/crates/metal2vulkan-validation/src/runtime_lane/line_widths.rs index 1961dbd4a..1cbb41541 100644 --- a/crates/metal2vulkan-validation/src/runtime_lane/line_widths.rs +++ b/crates/metal2vulkan-validation/src/runtime_lane/line_widths.rs @@ -2033,8 +2033,7 @@ fn a_refused_band_draws_at_the_nearest_width() { let pixels = drawn.ids.chunks(4).filter(|t| t[3] != 0).count(); assert!(pixels > 0, "{what}: drew nothing"); println!( - "LINES-NEAREST {what}: {pixels} pixels at the nearest width {} (Metal's line \ - at width 0 through these centres: 23)", + "LINES-NEAREST {what}: {pixels} pixels at the nearest width {}", facts.nearest(0.0) ); if facts.tessellates {