A rebind re-asked how its draw reads the pass's colors only where the kept
draw read through snapshots. A kept draw that read its own attachment
through the texture's copy, carried across a commit into a pass over a
texture over a buffer's bytes, whose every step reads through a snapshot
whatever the area, was rebound with the copy form: in builds with debug
assertions the rebound check panicked ("a draw rebound worked out other
commands than its every step", tests::pass_end_tiles on the Radeon 780M at
pin 84, timing-dependent), and in release the draw read the stale copy.
RenderLowering::reads_otherwise asks every step's question with nothing
counted or taken (in_place_wanted, snapshot_wanted_or, weigh_snapshot,
with Wanted::leading as every step's snapshot_by_area passes it): a kept
draw that reads through no snapshot is rebound, or drawn again as before,
only where every step reads none of its pass's colors in place, through
snapshots or after the split; else it takes every step, counted for a
carried draw in draws_carry_stopped_snapshot. The as-before path asks it
too: a draw the area rule sent to the copy weighs again there.
Also (perdraw7): walk_costs gains a profiling run of the no-barrier shape,
the reader's splits and their reasons in the walk counts, and barriers /
no-barrier shapes over host pages (walk_costs_profiled_over_pages); the
pass_end_tiles and dispatch_pending fixtures find where the run lays the
source out.
Tests: carried_draws::a_carried_copy_reader_stops_where_every_step_snapshots;
learned_coverage: a draw again weighs its form by its own count.
RUNTIME_VERSION 2266: kept draws that read through no snapshot can now take
every step's form.
Verified (perdraw7): clippy plain/m2v_gpu/m2v_cpu_icd 0 and rustdoc 0 at
7a4ef08494 (m3-max-28443); Radeon 780M fix PASS and negative control panics
at :1239/:1312 at the pre-rebase 2c5f5cba3f. Owed: the 780M at this sha,
lavapipe touched tests (run on development after landing).
Squashed from steelbrain/perdraw7 108762244d..7a4ef08494.