From 81f3419f6f5ea445bb509b6c414bea3c207a8a0e Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sun, 8 Nov 2026 23:40:19 -0800 Subject: [PATCH] RUNTIME_VERSION 1952 and the runtime-sources pin for the kept draw carried across render encoders The seven commits before this are ownpixel's carried kept draw. It was in progress at the owner's 11-08 park and lands under it. - A render encoder that ends with a rebinding kept draw in a plain first instance leaves its LiveBind and Kept in its command buffer. The next render encoder takes them where the pass shape, the layers and the under-state match. - The carried draw goes through restate, bring-in of the slots bound since, a stale check and a full state recording into the new VkCommandBuffer. - Any other call that settles the end lets them go. - New WorkCounts: kept_draws_carried, kept_draws_carry_dropped_{between,layout,under}, draws_rebound_carried and draws_carry_stopped{,_stale,_attached,_other}. Counts and recordings change, which a stored runtime artifact can see. So RUNTIME_VERSION goes 1951 -> 1952 and the runtime-sources pin is recomputed: 8b28de4fe9b2026ddc99e37d472db0199c4c0a64c1060b6ba26ea70d38762481. Verified at the tip dd6f32b81b (on 99a11fd507) by ownpixel: - 780M, gem10 11039, release, composite_costs medians of 9: - `passes`: frame CPU 3.228 -> 2.694 ms; per pass 29.60 -> 23.49 us; a draw 5650 -> 3597 ns. All 91 later passes carried, no carry stopped or dropped. - glass: frame 0.580 -> 0.529 ms, all 7 later passes carried. - One pass unchanged. - 780M, debug: runtime device suite 1967/1967; touched tests 65/66 (the one red, a_volume_s_plane_is_an_attachment, was the base's RADV volume red, fixed on development by c1a825d748). - MoltenVK touched tests 66/66. - lavapipe: carried_draws 5/5, draw_again 19/19, lane render tests 36/36. - Clippy (m2v_gpu, and plain) green at 11106. The cherry-pick onto a1b2bb1907 was clean. This tree is not yet built; development's round runs it. api-signatures --check, refusal-surface and conformance-coverage leave the docs unchanged. --- 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 33c0ced7e..690194e72 100644 --- a/crates/metal2vulkan-validation/runtime-sources.sha256 +++ b/crates/metal2vulkan-validation/runtime-sources.sha256 @@ -1 +1 @@ -e9c0cdabf11dcf274fa1cf9271b9fdc71fddcaa659d3912c2e7e56bbcb095e17 +8b28de4fe9b2026ddc99e37d472db0199c4c0a64c1060b6ba26ea70d38762481 diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index 0e7915364..e9d13898e 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 = 496; /// 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 = 1951; +pub const RUNTIME_VERSION: u32 = 1952; /// 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