Files
metal2vulkan/docs
Anees Iqbal d7d4870598 Wait a bound for a pipeline still being made, then drop its draws and dispatches
A cold MoltenVK compile inside one guest command buffer ran 11.59 s and
tripped the guest's own 10 s FIFO watchdog, which tore the task down;
development had no bound. New runtime choice DevicePolicy::pipeline_waits
(PipelineWaitPolicy::Bounded, the default, or Exact, which
exact_answers() selects), with bounds pipeline_creation_wait and
pipeline_commit_wait (4.5 s each, so one FIFO step waits 9 s at most).

Under Bounded:
- A render or compute state's creation hands its predicted making to the
  pool and waits for it up to the creation bound
  (WorkCounts::creations_left_making).
- A committed command buffer waits until its commit plus the commit
  bound for its draws', dispatches', tile dispatches' and execution
  replays' pipelines, then records each late one as nothing and runs on.
  CommandBuffer::dropped_draw names the first with VK_TIMEOUT. Counted in
  draws_dropped_still_making and dispatches_dropped_still_making, and
  announced as draw-dropped-still-making and dispatch-dropped-still-making.
- An execution's settle hands its makings to the pool.

A draw whose driver making failed now runs nothing and its command
buffer runs on, where it used to fail it: counted in
draws_dropped_unmade, named by dropped_draw(), and announced
draw-dropped-unmade (Degradation::DrawDroppedUnmade: the draw, its
state, a hash of the variant and specialization, and the driver's
error; once per device, or each time where announce_each asks). A
dispatch's failed making still fails its command buffer.

Docs: FAST-PATHS.md row, API.md policy bullet and catalogue entries,
runtime README Errors. RUNTIME_VERSION 1689. api_signatures.tsv
re-blessed. Runtime-sources pin recomputed.

Ports dev-perf 6f499ff764, 8c91a6e254, 33fc25b531, 5963fd6831 and
4ee316c55a, and the notice of aa7e78f23c in its minimal form (no per-key
set, no driver-message relay). The general-form predicted key
(7028c0d92a, ce02b68f23) is left out: on development it changed the
pipeline makings three M3 device tests count
(made_at_creation, pipeline_creation pooled making, its own
general_form_drawn), cause not found.

Verified on an M3 Max (MoltenVK 1.4.2), under maclock: the six bound and
drop device tests under both policies (the unmade one also asserts the
notice is heard once and names the driver's error), fast_paths,
degradation, degradation_catalogue, pipeline_wait_order,
inline_continues, dispatch_pending, api_signatures, api_surface and 169
profile tests: 218/218. Lanes on the M3: 42/44; the two failures are
ycbcr_textures::a_ycbcr_sample_through_an_unmeasured_filter_is_announced
(recorded failing on development before this change) and
pipeline_creation::draws_made_on_the_pool_draw_as_made_ones (1 pooled
making vs 2; fails the same under Exact; not yet run on development
without this change). Clippy plain and --cfg m2v_gpu and rustdoc
-D warnings clean. No sabotage run of the bound.
2026-10-28 23:15:01 +02:00
..