From 6efa9fe7b9fde18511c2884366f6b4b3b284b776 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Mon, 9 Nov 2026 09:52:56 -0800 Subject: [PATCH] RUNTIME_VERSION 1980, the runtime-sources pin and the API table for recovery 1c 1c (eac07b1f9a..e64d7a7e7a, 14 commits) puts the program's host-visible buffers in blocks of the runtime's own pages where the device's checks give them what plain blocks do (the import tax answered Fails and the fresh pages' texture verdicts hold), and a recovery carries those blocks to the new VkDevice, so pooled Shared and Managed buffers are no longer refused as MadeBeforeRecovery there. While a verdict is pending, and under exact_answers' Shadow policy, plain blocks serve. API table: two WorkCounts fields added, page_buffer_blocks_made and page_buffer_blocks_plain (additions only; nothing a consumer used moved). Verified by the branch at 951f9244cc (the same product code on 47e072ccd3): M3 percall gate with holds green at base and 1c, allocs/call identical, both-orders A/B with no row past 15% in both orders (m3-max-12032); RTX 5080 percall gate green in all four runs, allocs/call identical but one first-run row, padding_unobserved / hand_out_waits / device_recovery_carry pass; one more pooled block at rest (the page block beside the plain one, lavapipe 12062). Open: on the 5080 use_resource_read_write and use_resources_read_1 read x1.25 and x1.32 in both orders, unexplained; an M3 runtime-suite window test failed once in 10 runs at 1c (hunt running). Here: signatures blessed, REFUSALS and coverage docs regenerated, fmt. --- crates/metal2vulkan-validation/runtime-sources.sha256 | 2 +- crates/metal2vulkan/src/cache/mod.rs | 2 +- crates/metal2vulkan/tests/api_signatures.tsv | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/metal2vulkan-validation/runtime-sources.sha256 b/crates/metal2vulkan-validation/runtime-sources.sha256 index 929a14a1b..fd6ac8203 100644 --- a/crates/metal2vulkan-validation/runtime-sources.sha256 +++ b/crates/metal2vulkan-validation/runtime-sources.sha256 @@ -1 +1 @@ -8a34f2790244a2366411d007b1e2dabd2cd8a5aacb18a1549831d882c6a3e6e4 +718fe9db89bf5c631661b7b0a9b50c0e8a55a39fc4381d2c672a23cfa07d8b74 diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index 43df9f6fc..f69661c7e 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 = 497; /// 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 = 1979; +pub const RUNTIME_VERSION: u32 = 1980; /// 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 diff --git a/crates/metal2vulkan/tests/api_signatures.tsv b/crates/metal2vulkan/tests/api_signatures.tsv index 596fbc0a5..7276f5059 100644 --- a/crates/metal2vulkan/tests/api_signatures.tsv +++ b/crates/metal2vulkan/tests/api_signatures.tsv @@ -2998,6 +2998,8 @@ field metal2vulkan-runtime::WorkCounts.own_pixel_reads pub own_pixel_reads: u64 field metal2vulkan-runtime::WorkCounts.owned_descriptor_pools pub owned_descriptor_pools: u64 field metal2vulkan-runtime::WorkCounts.owned_kernel_spirv_bytes pub owned_kernel_spirv_bytes: u64 field metal2vulkan-runtime::WorkCounts.owned_kernels_made pub owned_kernels_made: u64 +field metal2vulkan-runtime::WorkCounts.page_buffer_blocks_made pub page_buffer_blocks_made: u64 +field metal2vulkan-runtime::WorkCounts.page_buffer_blocks_plain pub page_buffer_blocks_plain: u64 field metal2vulkan-runtime::WorkCounts.passes_not_inline_actions pub passes_not_inline_actions: u64 field metal2vulkan-runtime::WorkCounts.passes_not_inline_actions_dont_care_load pub passes_not_inline_actions_dont_care_load: u64 field metal2vulkan-runtime::WorkCounts.passes_not_inline_actions_resolve pub passes_not_inline_actions_resolve: u64