Files
metal2vulkan/docs
Anees Iqbal 7c223b02e4 RUNTIME 2320: A host step's notice names every GPU-form rule its pass breaks; rate-mapped steps that probe nothing are counted by why
What: where `commit` keeps a pass whose indirect commands the GPU may write from the GPU form,
and the `host-replayed-indirect-commands` notice of that first rule is to be announced
(`Device::announces_host_step`, a peek that counts nothing), the decision runs again passing over
each rule once named (`render/executions/cause.rs`'s `Passed`, `DeferredPass::rules_past`), and the
notice names every rule past the first that the pass breaks too, each judged as though the rules
before it were kept: the rate map's as though the pass had none. A rule the rest takes its answer
from (the commands' one primitive type, the pipeline state and its kind, the inherited state's
tessellation, vertex function and tile memory, the buffer's size, a refusal) is never passed over.
The commit path is unchanged where the notice was announced already: the first rule decides, as
before. Three WorkCounts fields count the rate-mapped passes a host step records without a probe:
`rate_map_steps_unfanned` (no fan-out: policy, features, memoryless attachment, shadowed texture),
`rate_map_steps_nothing_to_probe` (no command read) and `rate_map_steps_probing_none` (commands
read, no draw probed); with `rate_map_probes` they count every such pass once.

Why: the consumer's walk of a 3D renderer sees one notice, naming the rate map, so whether a GPU
form for rate-mapped passes would cover its pass (rules past the rate map) is unknown; and about
half a host step a frame there probes nothing, for no counted reason.

The notice's text changes (a RUNTIME bump at landing). API: three public WorkCounts fields
(api_signatures.tsv blessed); nothing removed.

Verified: tests::host_step_rules on lavapipe (an indexed triangle and an empty command of a
GPU-written buffer, executed in a rate-mapped pass: the rate map's notice names that rule alone;
with a visibility result mode set, the notice names the visibility rule, then the rate map past
it, which fails without this change; the counts: probed once each, the empty command's pass
probing none).

Also: host_step_rules: the buffer inherits the encoder's pipeline state; Degradation::HostReplayedIndirectCommands says its notice names the rules past the first.

Verified (lane icbgpu, msi m3-max-30616 at eec7881980, lavapipe): clippy -D warnings plain
and --cfg m2v_cpu_icd 0; 74/74 over host_step*, icb_*, indirect_command_buffer*,
notice_command_buffers, rate_map*, rate_mapped*, degradation*, trail_gpu_forms and
draw_shape_notices, the new host_step_rules among them; api-signatures --check clean.
Landed (main) at once: the hand negative control, gpucfg clippy and rustdoc run after.
RUNTIME 2320: the notice's text and what a run records change. WorkCounts gains
rate_map_steps_unfanned, rate_map_steps_nothing_to_probe, rate_map_steps_probing_none.
No Degradation kind.
2026-11-14 17:04:25 -08:00
..