What:
- render/draw_again.rs, rebound.rs: a kept reader drawn again or rebound
takes its reader identity and occlusion query as every step takes them,
whichever form it reads through (the copy taken before the pass among
them), and records its drawing commands inside the query. A debug
build checks each draw again's identities against the step's
(Readers::taken).
- slow_submissions.rs, command_buffer/submit.rs: a batch held in the
scheduler's group gets its slow line, timed from its submission to its
hold, naming the group.
- Tests: kept_shadowed_draws counts a frame's begins as the command buffers
it began (WorkCounts::command_buffers_begun), not the device's begin
calls, which begin-ahead spares move; kernel_end_device's slow-line
check expects a group held by the groups' ends.
docs/API.md and env_vars.rs describe the slow line.
Why: at pin 93b on the 780M (devlegs), kept_shadowed_draws' kept frame
recorded 3 queries where the apart frame recorded 4: a kept draw through
the pass's copy skipped its reader's query, so its coverage was never
learned. kernel_end_device's slow line was missing for a batch held in a
group.
How verified (lane keptquery): 780M (RADV PHOENIX) at 918d3319ea,
m3-max-30392: 86/87, all four kept_shadowed_draws pass with queries 4 in
both frames, 31 of 355 kept draws checked taking an identity, begins equal
to the command buffers begun; the one failure was its own new group check,
fixed in 68c8917098. Negative control at 400efe7932, m3-max-30393: 3 of 7
fail as at 93b (queries 3 vs 4; slow line absent). Lavapipe 87/87 and
clippy plain and cpu_icd at 918d3319ea (um790 m3-max-30313). The 3090 run
(m3-max-30394), lint (m3-max-30391) and the 780M kernel_end rerun at
68c8917098 run after landing.
RUNTIME 2317: a kept draw records a query and a slow line it did not.