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.
This commit is contained in:
1 parent
fac8049bd1
commit
7c223b02e4
10 files changed
+593
-99
No files matched your search
+4
-1
@@ -2683,7 +2683,10 @@ bound.
|
||||
from a buffer or indexed draws among its records, where its commands do not merge into one draw (a
|
||||
strip type, a `[[primitive_id]]` its fragment function reads, or another rule of the merged form),
|
||||
or, for a range read from a buffer, the CPU alone writes its records; its notice names the first
|
||||
rule that kept it from the GPU alone, and is announced once per such rule (a compute
|
||||
rule that kept it from the GPU alone and then every rule past it the pass breaks too, each judged
|
||||
as though the rules before it were kept (a rasterization rate map's as though the pass had none;
|
||||
the rules past the commands' one primitive type, the encoder's pipeline state and kind, the
|
||||
buffer's size or a refusal stay unjudged), and is announced once per first rule (a compute
|
||||
execution's once), so a walk of a program sees why each of its GPU-driven passes steps, not
|
||||
only the first one met. A compute execution: with a caller's check
|
||||
(`execute_commands_in_buffer_checked`) that may see what it looks for
|
||||
|
||||
Reference in new issue
Block a user