RUNTIME_VERSION 1933: a pass's first draw, the one that begins its first instance inline, is kept, so the next draw is rebound

Picks perdraw's steelbrain/pass-cost (391a1328ec, 116fe0916b, dd4b37d697). The first draw of
every pass begun inline was never kept, because it began the instance. So each pass paid two
full-step draws, and only the third could be rebound. Nothing read after the inline begin needs
the draw unkept, so `begun` leaves `stepless`. The draw-again debug check guards it: every
second draw takes every step again and is compared. WorkCounts::draws_unkept_instance_begun,
which would always read 0, is removed (api_signatures blessed in 391a1328ec).

Verified:
- Checks on ms01 lavapipe: clippy default/cpu_icd/gpu clean; rustdoc clean; draw_work and
  replayed_frames lanes 32/32; runtime suite 1951/1952 at 116fe0916b. The one red was
  draw_again's moved-buffer count, fixed in dd4b37d697. At dd4b37d697, api_signatures 3/3 and
  focused tests 38/38 debug, 24/24 release (m3-max-10202, 10257).
- composite_costs on gem10's 780M (m3-max-10242), base and tip interleaved, 3 rounds x 3 runs,
  host load about 5: per pass 33.52 -> 30.36 us median (-9.4%). Instructions, stable across runs:
  a draw 37072 -> 32958, a pass about 92.8k -> 80.3k (-13.5%).
- Cost counts (m3-max-10250, cost --cpu, 3 runs a side, stable moves only):
  draws_unkept_instance_begun 598 -> 0 (field removed); draws_unkept_instance 595 -> 15;
  draws_unkept_other 70 -> 628. In the suite most of those first draws stay unkept for another
  reason. The conformance cost records are re-recorded on development, after the alone leg's
  device leak is fixed.
This commit is contained in:
Anees Iqbal committed 2026-11-08 17:24:55 -08:00
1 parent e96b4b6c4c
commit 846f2112f5
2 files changed
+2 -2

No files matched your search

@@ -1 +1 @@
95d9c75631b4c8dd8c83cf8d3b852920be4be491cc3b5e1e2896828e2ac059ab
e835871cb8ac68e452f0c19805e6a2e63ed8e6466dec7f385609230eff810f97
+1 -1
View File
@@ -93,7 +93,7 @@ pub const ARTIFACT_FORMAT_VERSION: u32 = 493;
/// 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 = 1932;
pub const RUNTIME_VERSION: u32 = 1933;
/// 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