From 9f4c95f3f55c6054a5965a9d8f4f3431d0d2c2a2 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Tue, 10 Nov 2026 01:37:27 -0800 Subject: [PATCH] SEMANTICS_VERSION 2014, RUNTIME_VERSION 2002 and the pin for blends into padded and bfloat attachments What: the sixteen commits before this one (xrblend, steelbrain/xrblend a477689194; its SEMANTICS-only commit d4514fea3f skipped as empty here): a blended bfloat attachment is refused InvalidDescriptor(ColorAttachment), as Metal's pipeline validation refuses it (was NotImplemented(Format)); blends into the padded 10-bit formats (R10Unorm_X6, RG10Unorm_X12, their sRGB twins, RGB10A2Unorm_sRGB), dual-source included, are built through the extended-range in-shader blend with no input clamped, as the M3 measured; the runtime announces extended-range-blends-stored-codes for padded attachments (an announcement: RUNTIME_VERSION 2001 -> 2002). SEMANTICS 2014 (the branch's 2013 collided with readoffset's). Conflicts resolved at landing: the cost bill's AFTER_THE_LAST_RUN takes both families (30 names), known-gaps.tsv keeps both sets of rows, docs/CONFORMANCE-COVERAGE.md regenerated. The pin follows. Verified (xrblend): Metal on the M3 (probe padded_and_bfloat_blends.m, macOS 27.0.1); 17 new conformance cases (padded_blends) recorded and timed on the M3; replays with their 17 known-gaps rows per venue exit 0 on the M3 (m3-max-13310), the 780M (RADV PHOENIX, 13311) and lavapipe (13307), linear forms within 1-2 codes, sRGB within 5-6, the M3's dual-source infinite second source an end code (MoltenVK's regrouping); clippy plain/m2v_gpu/m2v_cpu_icd and rustdoc clean, 123 touched tests (13307); conformance 1031/1031 and api-docs (13343); release: the padded sweep 21.9 s for ~1,700 attempts, peak 45 MiB (13369). Not yet: rows for the 5080, Iris and the XTX (their replays will list the 17 cases until added). --- crates/metal2vulkan-validation/runtime-sources.sha256 | 2 +- crates/metal2vulkan/src/cache/mod.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/metal2vulkan-validation/runtime-sources.sha256 b/crates/metal2vulkan-validation/runtime-sources.sha256 index b10e47dd3..d3d25d6bd 100644 --- a/crates/metal2vulkan-validation/runtime-sources.sha256 +++ b/crates/metal2vulkan-validation/runtime-sources.sha256 @@ -1 +1 @@ -91f3369d556d14b86a76e507084ea37521b1edce091f90acf2c8f0df3de34404 +0e91dd8ce841443d14a923ed4af545785d29c888f7fb0ef51df2185b5cff547c diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index 0bb85970f..fc5370f90 100644 --- a/crates/metal2vulkan/src/cache/mod.rs +++ b/crates/metal2vulkan/src/cache/mod.rs @@ -60,7 +60,7 @@ mod tests; /// unchanged version, and its bless records the version. Independent of the crate's version and of /// [`ARTIFACT_FORMAT_VERSION`]. The commit that bumps it says what changed; this comment keeps no /// history. -pub const SEMANTICS_VERSION: u32 = 2013; +pub const SEMANTICS_VERSION: u32 = 2014; /// The byte-layout version of encoded artifacts (`CompiledFunction::to_bytes` and the /// [`PipelineArtifact`] encodings). Every encoded artifact carries it, and a decode under another @@ -93,7 +93,7 @@ pub const ARTIFACT_FORMAT_VERSION: u32 = 499; /// 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 = 2001; +pub const RUNTIME_VERSION: u32 = 2002; /// 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