On the Iris Xe (m3-max-4845, the self_reads lane, a 3662x2039 BGRA8 surface over host pages, 30
pairs of a 600x400 draw, a render-target barrier and a draw reading the target at its own
pixel), a surface in place (557d9f0905) split every reading draw: 30 splits a frame, 30 copies
of the whole surface into the reader's copy (224M texels copied in), 22.4 and 27.2 ms of GPU a
frame, where its shadow took the snapshot (cut A, 60b9a69d39): 30 snapshotted draws, no split,
4.7 and 4.3 ms. The in-place image took the feedback loop usage (aliases 1) but not the storage
usage, which a snapshot's fetch of the attachment in the pixel interlock reads through
(RenderLowering::keeps_own_attachment), so snapshot_wanted fell back to the split: the image
was the texture's declared plan's, where a shadow takes undeclared usages (with_undeclared_usage).
A texture over host pages that renders, in place, now takes the storage usage too
(framebuffer_fetch::storage_candidate over the feedback loop plan, with the view in another
format a fetch stores through where the device needs one: ANV's RGBA twin of a BGRA format)
where the device's check passed for a shader's writes over the pages' class and the texel is one
the check's kernel stores (4, 8 or 16 bytes): with that usage a shader writes the texels in
place, which the check's writes cover. Tried first, then the feedback loop plan, then the
declared plan: the first the device makes the image in place with. Elsewhere its readers split
as before. A rebind asks the writes verdict of an image with storage usage already.
Tests: tests::in_place_storage (new, device): a render target in place over host pages has the
storage usage only where the check passed for writes there, with the feedback loop usage and a
fetch through storage. runtime_lane::snapshot_reads::a_surfaces_readers_take_the_snapshot_at_any_area
expects a snapshot for an image in place only where it took the storage usage (Pointer writes:
Passed), as for a shadow.
Docs: in_place_image.rs (its usage), API.md (textures over host pages in place), FAST-PATHS.md
(the attachment-read row: images over host pages, and the shadow only where a texture is one).
Verified: cargo fmt; the build, clippy, lavapipe and the Iris A/B and snapshot lane follow in the
tip's evidence.
(cherry picked from commit e4d61153702293e23bd874cf0830ff22d6be307a)