From 2dc637eeff638404709dbb058b2522b3751b9dd1 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sun, 8 Nov 2026 18:01:55 -0800 Subject: [PATCH] RUNTIME_VERSION 1935: draws unlike their kept draw are counted by what differed Picks perdraw's 15bce71b34 (steelbrain/unlike-split). In reims' pin-26 glass walk, 69.5 of 248.5 draws per composite were draws_unlike_kept, with no count saying which part differed. Eight new WorkCounts fields count each part an unlike draw met: pipeline; call (the call or primitive assembly); counts; index_buffer; index_offset; tessellation; command_buffer; under. A ninth, draws_unlike_kept_arguments_alone, counts the draws that differ only in counts or index offset, which is how far rebinding across a draw's own arguments could reach. The parts are worked out only for an unlike draw, which takes every step anyway, so the like draw's comparison is unchanged. Verified (m3-max-10307, ms01 lavapipe): clippy default/cpu_icd/gpu clean; rustdoc clean; api_signatures 3/3. Focused draw_again, kept_shadowed_draws, command_counts and inline_first tests pass 20/20 debug and 16/16 release. The draw_work and replayed_frames lanes pass 32/32. The new test tests::draw_again::a_draw_unlike_its_kept_draw_is_counted_by_what_differed asserts all nine counts and the total. The cost records gain these counts at the next re-bless on development. --- 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 aea640f9f..650ffc671 100644 --- a/crates/metal2vulkan-validation/runtime-sources.sha256 +++ b/crates/metal2vulkan-validation/runtime-sources.sha256 @@ -1 +1 @@ -9d14f0c39bcf32bcd718dd5cd78cbb5b92a49a2be05fef86494c61ac3fad5c26 +66248551d7c49ab9b6b9454cb427970df0197581676ae9efa720d5d834fca680 diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index 54695b886..75023a675 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 = 493; /// 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 = 1934; +pub const RUNTIME_VERSION: u32 = 1935; /// 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