SEMANTICS_VERSION 2072, ARTIFACT_FORMAT_VERSION 512, RUNTIME_VERSION 2175: a host step fans its rate-mapped draws out to the regions in one draw

The two commits before this one. A rate-mapped pass drew every draw once per region of the map's plan (2074 regions on
a 3648 by 1734 screen), so a guest frame's command buffer took 514 ms of an Iris Xe's GPU and 462 ms of a Radeon
780M's. At a host step, under the default RateMapRegionPolicy::FanOut and where the device enables geometryShader,
shaderClipDistance and vertexPipelineStoresAndAtomics, the pass is probed first (the fan-out variant's geometry stage
writes a flag and a copy count per command and emits nothing); a command whose flag is clear is drawn once through the
fan-out variant over the whole target, a copy per region it touches; a flagged command, every command after a barrier,
after a memory-writing draw or at a mesh or patch draw is drawn region by region as before, and a refused fan-out
variant falls back to region by region. RateMapRegionPolicy::Exact (DevicePolicy::exact_answers()) keeps every draw
region by region. FAST-PATHS row and known gap (the encoder's own draws and the draws commit records stay region by
region), API.md bullet, WorkCounts for probes, flagged and fanned-out draws and probe GPU time. The pieces lane runs
both policies, its commit frame over a named range.

Verified (on the branch, release, --cfg m2v_gpu): the runtime's rate_mapped tests pass on the 780M (m3-max-23637), the
Iris Xe and lavapipe (at e55e6ebd01, the same code but the lane), the fan-out test counting one probe, one flagged draw
and six fanned out with pixels equal to the region-by-region draws; the pieces lane's host-step frame 87 ms fanned out
against 300 ms Exact on the 780M (23637; commit 284 ms in 20 pieces), 111 ms against 514 ms on the Iris (probe 1.1
ms). Clippy with --cfg m2v_gpu over translator, runtime and validation (23638), rustdoc, the API reference check, the
surface, signature and fast-paths tests.
This commit is contained in:
Anees Iqbal committed 2026-11-12 18:28:51 -08:00
1 parent b817cd5037
commit a6913f1065
1 file changed
+3 -3
+3 -3
View File
@@ -60,7 +60,7 @@ mod tests;
/// unchanged version, and its bless records the version. Independent of the crate's version and of
/// [`ARTIFACT_FORMAT_VERSION`]. The commit that bumps it says what changed; this comment keeps no
/// history.
pub const SEMANTICS_VERSION: u32 = 2071;
pub const SEMANTICS_VERSION: u32 = 2072;
/// The byte-layout version of encoded artifacts (`CompiledFunction::to_bytes` and the
/// [`PipelineArtifact`] encodings). Every encoded artifact carries it, and a decode under another
@@ -70,7 +70,7 @@ pub const SEMANTICS_VERSION: u32 = 2071;
/// re-typed in an encoded type, its `codec` body or its `envelope`. A variant removed while its tag
/// stays unused needs no bump: an entry holding it fails to decode, which is a miss. The commit that
/// bumps it says what changed; this comment keeps no history.
pub const ARTIFACT_FORMAT_VERSION: u32 = 511;
pub const ARTIFACT_FORMAT_VERSION: u32 = 512;
/// The version of what this crate's runtime does with a compiled pipeline: instantiating a binding
/// plan (`BindingPlan::instantiate_*`: descriptor ranges, push bytes, root, argument, and handle
@@ -93,7 +93,7 @@ pub const ARTIFACT_FORMAT_VERSION: u32 = 511;
/// 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 = 2174;
pub const RUNTIME_VERSION: u32 = 2175;
/// 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