From 0e51949ef1952ae77892fb1aa9126f48cbb69467 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Mon, 23 Nov 2026 09:05:12 -0800 Subject: [PATCH] Translator: SEMANTICS_VERSION 2295 and ARTIFACT_FORMAT_VERSION 594 for storage levels under the identity domains A storage slot written, read or size-queried at a run-time level under the identity domains was a refusal (Unsupported{IdentityDomains}) and is a module since 0dec15d410, under the same key, so cached translations of it are stale. The same commit adds PushField::TextureLevelBase to the cached artifact's codec. Development holds SEMANTICS_VERSION 2294 and ARTIFACT_FORMAT_VERSION 593 at 17473a1a42: these are the next free numbers. The form's cost on each card, once per device (a VM holds one), base against the written form, arms alternated in one job per card, the validation layer off: - RADV on the Radeon 780M (Mesa 26.2.6): Device::new +1,659 us (13,228 -> 14,887 us, +12.5%); device memory +2,097,152 B (65,536 x 32 B, in the DRM fdinfo totals and the memory budget), host heap +16 KB (job m3-max-71086). - AMDVLK 2025.Q2.1 on the Radeon 780M: Device::new +293 us (3,352 -> 3,644 us); device memory +4,202,496 B in the DRM fdinfo totals, host heap +16 KB (job m3-max-71086). - ANV on the Iris Xe (Mesa 26.2.6): Device::new +0.28 ms (8,114 -> 8,390 us, +3.4%); host heap +3,162,128 B (ANV's 48-byte host descriptor per element, allocated at pool creation), device memory +2,621,440 B in the DRM fdinfo totals, 0 in the memory budget (job m3-max-71073). - NVIDIA 620.70.06 on the RTX 3090: Device::new +0.6% (99,187 -> 99,761 us); host heap +278,296 B, memory budget +0 (job m3-max-71091). The dispatch loop per command buffer on the Iris Xe moved by at most 1.4% (job m3-max-71022). --- crates/metal2vulkan/src/cache/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index 855a640f5..1aa139613 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 = 2294; +pub const SEMANTICS_VERSION: u32 = 2295; /// 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 = 2294; /// 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 = 593; +pub const ARTIFACT_FORMAT_VERSION: u32 = 594; /// The version of what this crate gives a runtime for the runs of a compiled pipeline, beside the /// compile: the device a run opens and what it enables, the Vulkan and Metal vocabularies a runtime