What: a reader's snapshot (render/snapshot.rs, Texture::snapshot_texels) is a storage image of
the read texture's level-0 extent beside the texture's own image, which no log line named and no
count counted as an image. Each snapshot a draw takes is now counted
(WorkCounts::reading_snapshots_taken; reading_snapshots_recycled for those whose image was the
recycler's parked one, which placed no memory) and named in the shadow log
(METAL2VULKAN_LOG_SHADOWS): the draw's call, the texture it binds (format, size, levels, usage,
object ID, the texture it is a view of), the snapshot's format and extent, and whether its image
is the recycler's or one placed for it. Image records whether the recycler handed its VkImage
back (Device::recycled_image now says so).
Why: a consumer's Iris walk (RUNTIME 2485) showed a second Private image of each image cache's
size placed about 1 ms after the cache and returned with it, 109 of them, named by nothing: the
snapshot of a draw that samples the cache's view at its own pixels while its own pass renders the
view and writes that color. RUNTIME 2508 already releases it with its command buffers; it stayed
unnamed and uncounted.
Test: tests::snapshot_goes turns the shadow log on and checks one line per snapshot taken, the
recycler's named so, each naming the view, its texture and the snapshot's extent; the second
pass takes 1 snapshot, the recycler's. On a device without the path: none taken or named, and
the reader's copy is the usage shadow the log names for the attached read.
Verified (twinplace lane, tip 2e160c176e on fe3f09f569): m3-max-39527 (msi): clippy -D warnings
plain, m2v_gpu and m2v_cpu_icd 0 for metal2vulkan-runtime and metal2vulkan, rustdoc 0, lavapipe
snapshot_goes, snapshot_reader*, snapshot_area, leading_snapshots, swapped_out_book 10/10
(the copy route: snapshots taken 0); m3-max-39554: api_signatures, api_surface, env_registry
19/19; PHOENIX (RADV) m3-max-39555: the same 10/10, snapshots taken 3, recycled 2, lines 3.
New WorkCounts fields reading_snapshots_taken and reading_snapshots_recycled; no new
Degradation kind; no route change.