From 01273f9b04f8abefcb327e94198d5556f340d87e Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sun, 8 Nov 2026 21:16:10 -0800 Subject: [PATCH] SEMANTICS 1999, ARTIFACT_FORMAT 496, RUNTIME_VERSION 1942 and the pin for the slots' level reads The three commits before this (ownpixel) carry StageModule::level_reads in every stage's artifact: one LevelReads per texture slot, giving the levels its reads can reach. The runtime counts the attached-read slots of draws that take every step by how those levels meet the lowest attached level: attached_read_slots and its _one_level, _first_level, _any_level, _reaching and _below parts. Nothing is bound or copied differently yet; the counts name the shape that a narrowed view may serve. The branch had bumped SEMANTICS to 1998 and ARTIFACT_FORMAT to 495 on b4c1d25aa3, numbers the early-mask notice took first (5be90aacf9), so the artifacts move to the next ones here. work_counts.rs met the early-mask counter on cherry-pick and keeps both. Verified (ownpixel, on the M3): workspace plain clippy and the translator suite at the branch (3396/3397, the one red its own test, fixed in the last commit); level_reads 3/3, golden hashes, api_surface and api_signatures at its tip. Landing: pin-compute, api-signatures --check (834 names), refusal surface and coverage with no diff. The merged tree's build and clippy follow on development. --- crates/metal2vulkan-validation/runtime-sources.sha256 | 2 +- crates/metal2vulkan/src/cache/mod.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/metal2vulkan-validation/runtime-sources.sha256 b/crates/metal2vulkan-validation/runtime-sources.sha256 index 7f8509b07..7e715e609 100644 --- a/crates/metal2vulkan-validation/runtime-sources.sha256 +++ b/crates/metal2vulkan-validation/runtime-sources.sha256 @@ -1 +1 @@ -946ee98b8af99b8fb7f5b0285ddfb4891da09896cb4e721bf04b5f7d6a781a14 +bd0b4ad4743d44625a36b50e77839fce8129c0a0f28d05c3505ca14fe4d0e91b diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index d30fb1313..597b5b8b7 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 = 1998; +pub const SEMANTICS_VERSION: u32 = 1999; /// The byte-layout version of encoded artifacts (`CompiledFunction::to_bytes` and the /// [`PipelineArtifact`] encodings). Every encoded artifact carries it, and a decode under another @@ -70,7 +70,7 @@ pub const SEMANTICS_VERSION: u32 = 1998; /// re-typed in an encoded type, its `codec` body or its `envelope`. A variant removed while its tag /// stays unused needs no bump: an entry holding it fails to decode, which is a miss. The commit that /// bumps it says what changed; this comment keeps no history. -pub const ARTIFACT_FORMAT_VERSION: u32 = 495; +pub const ARTIFACT_FORMAT_VERSION: u32 = 496; /// The version of what this crate's runtime does with a compiled pipeline: instantiating a binding /// plan (`BindingPlan::instantiate_*`: descriptor ranges, push bytes, root, argument, and handle @@ -93,7 +93,7 @@ pub const ARTIFACT_FORMAT_VERSION: u32 = 495; /// 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 = 1941; +pub const RUNTIME_VERSION: u32 = 1942; /// 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