From b5ec32d663cf028524fc221fec89db6abcab899f Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sun, 8 Nov 2026 22:18:26 -0800 Subject: [PATCH] RUNTIME_VERSION 1945 and the runtime-sources pin for nearest line widths on the granularity grid The four commits before this (nvreds) put a refused band's lines at the nearest width on the device's lineWidthGranularity grid: the nearer step, a tie the wider, never 0 (render/line_width.rs drawn_width). On RADV (granularity 1/8 from 0) Metal's width-0 line was handed 1/16, a tie between 0 and 1/8 that the driver may take either way, and it drew nothing. It now draws at 1/8. Verified (nvreds): - RX 7900 XTX (10724, NAVI31) and the 780M (10773, PHOENIX): 23 pixels at width 0.125 where Metal draws 23, against 'drew nothing' at the base; - lavapipe 10911: runtime tests 21/21, plain clippy, lane 7/7; - M3 10654 lane 7/7; Iris 10629 23/23 before the rebase. The two wide_lines reds (628 against 622 pixels) are on both sides and their fix is the next tip. Landing: pin-compute, api-signatures --check, refusal surface and coverage with no diff. --- crates/metal2vulkan-validation/runtime-sources.sha256 | 2 +- crates/metal2vulkan/src/cache/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/metal2vulkan-validation/runtime-sources.sha256 b/crates/metal2vulkan-validation/runtime-sources.sha256 index 231eecdd8..31412aba6 100644 --- a/crates/metal2vulkan-validation/runtime-sources.sha256 +++ b/crates/metal2vulkan-validation/runtime-sources.sha256 @@ -1 +1 @@ -472966aa53dc439abed13b5d5b0aae8ff102598630490ba73520ad799f1fca3b +f5d183e7f767e51fba12d7cea2cc359c051d17f0d8de57ffb23b52c7a0ad5afc diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index 3d2d95674..1d48ef6d1 100644 --- a/crates/metal2vulkan/src/cache/mod.rs +++ b/crates/metal2vulkan/src/cache/mod.rs @@ -93,7 +93,7 @@ pub const ARTIFACT_FORMAT_VERSION: u32 = 496; /// changes no behaviour, and then updates that hash alone with the commit saying why, or changes /// behaviour and also bumps this version. The commit that bumps it says what changed; this comment /// keeps no history. -pub const RUNTIME_VERSION: u32 = 1944; +pub const RUNTIME_VERSION: u32 = 1945; /// The digest of the sources this build of the crate was compiled from: SHA-256, as lowercase hex, /// of the manifest, the build script, and exactly the files the crate roots' module tree compiles