From a9e07b6bf4fb6b70b488ccaba19a2e1f26e9e7b6 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Mon, 2 Nov 2026 10:41:04 -0800 Subject: [PATCH] Bump RUNTIME_VERSION to 1728 and pin the runtime sources for the placements outside the space What: RUNTIME_VERSION 1722 -> 1728; the runtime-sources pin recomputed on this tree (`pin-compute.py`, 99e3d83d...). Why: a run of an unchanged artifact and plan now answers other addresses. The in-place check's buffers, a device-made texture buffer's texels and a visible function table's words no longer take ranges of the Metal space, so a program's `Any` buffers made after or beside them answer lower `gpu_address`es, and a pin there that was refused `PlacementConflict::Held` is made. Bumping it also renames the in-place check's record, so each host checks once more; its verdicts do not depend on the placement. Verified on the M3 Max (MoltenVK), on this tree: - the runtime suite with `--cfg m2v_gpu`: 1487 passed; plain: 1194 passed; - the validation lanes for texture buffers, function tables, pools, in-place textures, rebinds, memoryless textures, swizzles, render arguments, chosen pointers and indirect executions: 177 of 178 passed. The one failure, `function_tables::tables_and_handles_answer_as_metal_s_do` (a binary function's handle answers None), fails the same way on the base ed08da17f6; - the two lane tests of c62deff2e3 fail with its two placements set back to `Any` ("out of Device memory" for the texture buffer and the table made while the space is held); - the consumer's repro: exit 1 in 5 of 5 runs on the base (a pin at 2^32 or 2^32 + 16 MiB refused `Held` by the check's 40 MiB at 2^32), exit 0 in 5 of 5 runs on this tree (about 110,000 pins made while the check ran, 78 to 82 ms; Pointer and Fresh passed, DmaBuf unchecked); - `the_runtime_sources_are_the_committed_ones` passes against a build of this tree; clippy (all features, plain and `--cfg m2v_gpu`) and `signatures.py --check` are clean. (cherry picked from commit be8a19940bcd68c8700e499417e38f1a56b0e20f) --- 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 7ca40a7cc..a30ccef1d 100644 --- a/crates/metal2vulkan-validation/runtime-sources.sha256 +++ b/crates/metal2vulkan-validation/runtime-sources.sha256 @@ -1 +1 @@ -03b893f8a9094f784fd083db67bfca638bcf7b0971bcdd71ed3edce08a3b84cd +99e3d83d27b82969a2e181845b04431cb432e2e0b3a071cf464cc65625360c04 diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index 1381c080d..3f8b0b031 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 = 482; /// 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 = 1722; +pub const RUNTIME_VERSION: u32 = 1728; /// 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