From 45914edb813d40a8d29d1c3c9bf4040725df3f41 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Fri, 13 Nov 2026 08:27:17 -0800 Subject: [PATCH] RUNTIME_VERSION 2224: count the bytes of indirect command buffers' records the GPU copies and resets The commit before this one adds WorkCounts::indirect_record_bytes_gpu_copied and indirect_record_bytes_gpu_reset: a blit's copyIndirectCommandBuffer and resetCommandsInBuffer count their records' bytes (COMMAND_BYTES, 2248 a command) as each is encoded. On the RTX 2080 a copy of 8162 records (18.3 MB) took 16.25 ms of GPU time against 0.66 ms for executing them (the commit body's table), so a guest walk's counts decide whether sizing records by their descriptor pays. Counting is runtime behaviour (RUNTIME). Verified by ratemap's runs on msi (25624, before the rebase onto 65ad8ba049): clippy clean workspace-wide and on the runtime under --cfg m2v_gpu; the new device test (a copy of 3 commands, an empty copy and a reset of 2: 3 and 2 records' bytes) and the ICB setters test pass on lavapipe; signatures --check passes. --- crates/metal2vulkan/src/cache/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index 2a66d5804..df3d3d945 100644 --- a/crates/metal2vulkan/src/cache/mod.rs +++ b/crates/metal2vulkan/src/cache/mod.rs @@ -94,7 +94,7 @@ pub const ARTIFACT_FORMAT_VERSION: u32 = 517; /// 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 = 2223; +pub const RUNTIME_VERSION: u32 = 2224; /// 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