RUNTIME_VERSION 2211: a commit's copies in from a host copy ride its batch, with no forced submission

Only copies in from real staging now count against the staged-copy bound (STAGED_BYTES,
STAGED_COPIES). A copy in from a host copy (the runtime's own mirror, or an import of the
caller's pages) holds no staging memory, counts toward no bound and makes no submission of its
own: Buffer::upload no longer calls submit_internal, and a commit's uploads go with its own
batch. Before, a commit naming more than 256 MiB of Managed ranges crossed the bound, submitted
internally and waited on the GPU inside the commit call: Geekbench's Photo Filter, Video Filter
and Path Tracer paid about 137 ms once an iteration on an RTX 3090 (internal_submissions +23,
about 137 ms outside the commit phases each). AtCommit's staging keeps the bound. When a commit
submits changes, so this changes runtime behaviour.

Verified by the change's own runs on the RTX 2080: ranges_past_the_bound_go_with_the_commit_s_batch
(528 MiB of ranges over the runtime's own buffer and an import) fails before the change with 2
internal submissions and a 280.7 ms commit, and passes after with 0, no bytes staged and a 28 us
commit, the GPU reading the right bytes; the AtCommit leg keeps its 2. Bench at 265 MiB a commit:
the commit call 140.2 ms -> 0.028 ms, completion unchanged at 140.5 ms. managed_copy_device 30
passed on the 2080 and on lavapipe; clippy plain, --cfg m2v_gpu and --cfg m2v_cpu_icd and
rustdoc green.
This commit is contained in:
Anees Iqbal committed 2026-11-13 01:30:59 -08:00
1 parent 69e257b1a3
commit 0772e7d3d0
1 file changed
+1 -1
+1 -1
View File
@@ -93,7 +93,7 @@ pub const ARTIFACT_FORMAT_VERSION: u32 = 516;
/// 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 = 2210;
pub const RUNTIME_VERSION: u32 = 2211;
/// 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