From 90c9936538ab0e4e3bef12c6b19f2f0ee816f163 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sun, 8 Nov 2026 20:09:21 -0800 Subject: [PATCH] RUNTIME_VERSION 1940 and the runtime-sources pin for ANV's clear taking either code The two commits before this (nvreds) add DriverFact::ColorClearTakesEitherCode for ANV on the Iris Xe of RPL-P (deviceID 0xa7a0), as the RTX 5080 Laptop's row has it. Vulkan's float-to-unorm conversion returns either of the two closest codes. On that driver a clear's code depends on the image: 0.1 in an 8-bit unorm channel stores 0x1a in a private optimal image and 0x19 in place. RGB10A2's 0.8793 (899.51 codes) stores 899 where Metal stores 900. Under rule 1 that is the device's native conversion: the runtime announces device-color-conversion for a clear or a plain fill of a normalized channel off a whole code there. The lanes accept either code only at the clear step, for the cleared channels, where the device lacks ColorClearIsMetals. They compare every load, blend and blit byte for byte. Verified (nvreds): - Iris m3-max-10468 at 385c9c6357, Mesa 26.2.6: no_copy_textures, pitched_surfaces, resolves and color_fills 77/77, twice; - um870 m3-max-10469: clippy x3 and rustdoc green; suites red only at golden_hashes, the profile's facts fingerprint, which development's golden re-bless takes; - M3 m3-max-10524 79/79, and lavapipe 79/79 (um790 10558) at the next commit of that branch. 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 520a6ab4f..55f169a3e 100644 --- a/crates/metal2vulkan-validation/runtime-sources.sha256 +++ b/crates/metal2vulkan-validation/runtime-sources.sha256 @@ -1 +1 @@ -f2bfce4dcf22e6f8f8b2ec74bf2531a01f5f680dc19be9d4e4aecde7e1109250 +5721292890169cf916a78b3f7173e94410d9a4254237bef154bb0b4f21ea80c3 diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index a7553c1b5..578c6e601 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 = 494; /// 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 = 1939; +pub const RUNTIME_VERSION: u32 = 1940; /// 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