From 5ef09c1e70a0e7b34ce4ce7c83902bae6caf1f02 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Mon, 23 Nov 2026 01:06:44 -0800 Subject: [PATCH] Translator: SEMANTICS_VERSION 2286 for an access past an argument buffer that may reach its command buffer's word What changed in the output (4c438ca2c6): under the identity domains, a command_buffer member's 8 bytes in an argument buffer are plain data, its gpuResourceID word, for both provenance rules: the per-access rule (Walk::access, ObjectBuffer::touches_object) and the escape and dynamic-deref rule (classify). An access that may reach them, such as a signed run-time index past the structure that runs back into it, is a plain read or write of that word. Before, it was Unsupported{ArgumentBufferObjects, NotImplemented}. Under the resident-table domains it still is. Every other object member (a pipeline state, a texture, a sampler and the rest) stays opaque under both domains. Census of the indexed private corpus, base e50427cfe5 against a5855784a7 (the branch before its rebase onto development; its product diff is this branch's up to 21a189388c) (job m3-max-70396), on runtime-floor and gate-lavapipe, 17216 rows each: - ArgumentBufferObjects rows go from 50 to 16. - 34 rows move on each profile. 18 now translate: the 16 vertex functions this slice is for, and 2 private rows outside them. The other 16 are kernels, now refused as GpuEncodedIndirectCommands. - Internal errors, defects and budget stops are 0 at both commits. - Slowest row: 810 ms on runtime-floor and 786 ms on gate-lavapipe. Peak worker RSS is at most 222 MB. Cached artifacts and refusals keyed under 2285 would hold the old refusal for those rows, so the version moves from 2285 to 2286. --- crates/metal2vulkan/src/cache/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index 29e014c20..d0093c5b9 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 = 2285; +pub const SEMANTICS_VERSION: u32 = 2286; /// The byte-layout version of encoded artifacts (`CompiledFunction::to_bytes` and the /// [`PipelineArtifact`] encodings). Every encoded artifact carries it, and a decode under another