RUNTIME_VERSION 2109: a host step waits for the batches that wrote what it reads, not every queue's work

The commits before this one. A pass the scheduler's host step records (an execution of render commands the GPU may
write) waited for every VkQueue's last submitted batch, so a frame with N such executions behind one culling kernel
drained the GPU N times. The gate now asks the tracker for the last batches that wrote the bytes the step reads on the
host (the records and the range of each execution or pass segment that waits for the GPU: Tracker::last_writes,
CommandBufferShared::step_reads), and falls back to the old gate where a read is untracked, a sparse update or a
now-step needs the step, or a segment has no bound uses. The range of executeCommandsInBuffer:indirectBuffer: is read
in place on the host where the host maps the GPU's bytes (Buffer::maps_gpu_bytes), so it is a tracked read too, and
the copy that kept each pass's range in the previous pass's batch is gone where it is. New count
WorkCounts::host_step_gates_narrowed (conformance cost: SHARED, QUEUE_DEPTH). HostReplayedIndirectCommands' cost
text in degradation.rs and docs/API.md says what the step waits for.

Verified: runtime_lane::depth_executions::a_frame_s_executions_wait_for_the_culling_alone (an unrelated fill on queue
B, a culling writer on queue A, a frame of two passes executing through the range) gives 2 host steps and 2 narrowed
gates with both depths right on lavapipe (m3-max-20638) and the RADV 780M (m3-max-20649); with the gate forced back to
the old one (m3-max-20648) it gives 0 narrowed, pixels right. tests::tracker::a_host_read_waits_for_the_last_writes_
of_its_bytes_alone. Lint four ways, rustdoc, family, api, refusal, catalogue, tracker and conformance cost tests
(m3-max-20659).
This commit is contained in:
Anees Iqbal committed 2026-11-12 04:53:42 -08:00
1 parent 93eda68415
commit 522d56bb6c
1 file changed
+1 -1
+1 -1
View File
@@ -93,7 +93,7 @@ pub const ARTIFACT_FORMAT_VERSION: u32 = 504;
/// 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 = 2108;
pub const RUNTIME_VERSION: u32 = 2109;
/// 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