From da739e4aa5c22508e455dfc57dbd29396ec0e2b7 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Fri, 13 Nov 2026 19:28:32 -0800 Subject: [PATCH] The runtime-pin input test lists spirv/ir/intern.rs as not a runtime input The test the_runtime_sources_are_the_committed_ones failed on development (full validation suite, m3-max-27765 at d72dc03519): the runtime inputs reach metal2vulkan/src/spirv/ir/intern.rs through bind/state.rs, which has used its FxHasher since RUNTIME 2226 (54752dd4f7) to key kept bind shapes and samplers, and the file is neither hashed nor listed. The hash only narrows which kept shapes a draw compares field by field; that comparison decides, so another hasher changes no run's answers. The file goes on the not-runtime list with that reason instead of into the pin's hash, which would re-pin on every translator interning change. Test infrastructure only: no version bump. Verified: the_runtime_sources_are_the_committed_ones on msi (m3-max-27822). --- .../src/candidate/engine/artifact/tests.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/metal2vulkan-validation/src/candidate/engine/artifact/tests.rs b/crates/metal2vulkan-validation/src/candidate/engine/artifact/tests.rs index 32278de7e..2d6c78bb8 100644 --- a/crates/metal2vulkan-validation/src/candidate/engine/artifact/tests.rs +++ b/crates/metal2vulkan-validation/src/candidate/engine/artifact/tests.rs @@ -194,6 +194,7 @@ fn the_runtime_sources_are_the_committed_ones() { ("metal2vulkan/src/spirv/builder/mod.rs", spirv), ("metal2vulkan/src/spirv/error.rs", spirv), ("metal2vulkan/src/spirv/ids.rs", spirv), + ("metal2vulkan/src/spirv/ir/intern.rs", "the hasher (`FxHasher`) bind/state.rs keys bind shapes with: a key only narrows which kept shapes a draw compares whole, and the comparison decides, so another hash changes no run's answers"), ("metal2vulkan/src/spirv/ir/mod.rs", spirv), ("metal2vulkan/src/spirv/requirements/mod.rs", "the SPIR-V requirements tables: the runtime reads only `extended_format`, whether a storage image format needs `StorageImageExtendedFormats` (SPIR-V's fixed format table), through the view formats a texture lists (metal/format's `storage_view_formats`); the pipelines that write through those views are compiled with the same answer, which the artifact digests"), ("metal2vulkan/src/spirv/serialize/mod.rs", spirv),