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.
This commit is contained in:
Anees Iqbal committed 2026-11-13 08:27:17 -08:00
1 parent 18cf0cab66
commit 45914edb81
1 file changed
+1 -1
+1 -1
View File
@@ -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