On a profile that takes DriverWorkaround::PushReadsLengthenThreadPayload (ANV on the Iris Xe of
RPL-P) a storage view bound at offset 0 reads at its bind offset alone (RangeAtBindOffset 1). Every
plan made before a bind (a render state's creation prediction, a compute state's predicted region,
a warm pass's replay of a recorded dispatch) bound nothing, and an unbound storage view took 0, so
the creation made the general form and the commonest command, every storage view at offset 0,
made a second pipeline at its first use; the warm records named the other form.
- bind::plan::slots::range_at_bind_offset: a storage view bound to nothing takes what a bind at
offset 0 takes; a uniform view keeps 0. Elsewhere no storage view declares the key.
- Render creation (pipeline/predicted.rs): the predicted key keeps its storage views' constants
(uniform_residual_form) and the creation makes that key and, where it differs, its general form,
together (RenderVariant::make_at_creation: pooled and waited for within one bound under Bounded,
joined under Exact). The pool-ahead making of the key is deleted; the creation log names the
general form's line.
- Compute creation (pipeline/dispatch_making.rs): the predicted region and its residual form,
made together the same way. A warm pass's dispatch replay makes each region's residual form too
(pipeline/dispatch_record.rs).
- The executor tells offset 0 apart at every slot (views_told_apart), so its plan of a case on the
row is the runtime's (runtime_lane::executions).
- Tests: per-row expectations where offset 0 is its own shape or the creation makes two
(made_at_creation, pipeline_records' Makings, grid_classes, dispatch_work, warm, the kernel
creation counts in uniform_bind_offsets); the draw-again general-form test now binds
colored_vertex's positions at 16 and colors at 0, a key neither creation form matches; a new
device test, storage_views_at_offset_0_make_nothing_at_their_first_use, counts that a draw and a
dispatch of storage views at offset 0 make, pool and take nothing but the creation's pipeline;
an ignored timing test, storage_creation_times, times such a state's creation cold, from the
memo and from the directory.
- Docs: DriverWorkaround::PushReadsLengthenThreadPayload, the DEFECTS row, residual.rs,
predicted.rs, dispatch_making.rs, dispatch_record.rs, the warm pass, docs/API.md.
Also: c1d0b47a10 (WorkCounts docs name both creation forms; the first-use test types its positions),
6377eafa09 (storage_creation_times prints each round).
Why: fix forward for RUNTIME 2398-2400. Round cc1d619c7a's Iris legs failed about 16 tests on the
pipeline the creation made not being the one first use takes (made_at_creation, pipeline_records,
warm, restart, ycbcr_textures, executions, grid_classes, dispatch_work).
Verified in the lane: m3-max-34579 (at 2e6fbef8f2) clippy -D warnings, metal2vulkan, runtime and
validation, all targets and features; bind::plan::slots tests 14/14. m3-max-34603 (at 6377eafa09)
clippy --cfg m2v_gpu of runtime and validation; validation candidate::engine + worker::compile 103/105:
the runtime-sources pin (re-pinned at landing) and
candidate::engine::guards::tests::no_venue_runs_a_guarded_target_under_robustness_1_alone
(guards/tests.rs:125, under investigation: present on development or not). Still running when landed: the
Iris suites (made_at_creation, pipeline_records, restart, ycbcr_textures, executions, dispatch_work,
grid_classes, warm, uniform_bind_offsets, draw_again) and the creation-time A/B, cold and warm.