A tiled texture of more than one level (Buffer::new_tiled_texture) over a no-copy
buffer presented the shared zero stand-in at every level while the bytes were
detached, and refused CPU access at every level (DetachedTexelAccess). On a Mac its
later levels are the texture's own memory, which a detach leaves, and its first
level the pages it took, whose last bytes its CPU access reaches.
The texture's image is its own, so it now keeps presenting it: noted with keeps
(NotedTexture::keeps), it takes no stand-in at the detach (TexturesOver::images
leaves it out, and so do the stale-reach notes) nor at its making over detached
bytes. Before anything is detached, the detach loads its first level with the
bytes' texels as they are then (keep_first_levels, Texture::keep_first_level: a
get_bytes of the pages, then a write into the image), so an unnamed read and
get_bytes read the last texels, those the CPU wrote after the last copy in
included; a replace_region of that level stays refused. The later levels are read
and written in the image as before. Once the bytes lie in pages again the first
level copies them in at its next use. The load reads the level's texels once on
the host (11.7 KB for WindowServer's 54x54) and stages one copy for the next
submission, at a detach only.
Docs: the item's rustdoc says the difference (its first level reads its last bytes
while detached, where a texture over the pages alone reads zeros), with its other
levels' rule and the copies of item 1 and 2; detach.rs, stand_in.rs,
DetachedTexelAccess's doc and docs/API.md. REFUSALS regenerated (unchanged), api
signatures checked (no change).
Verified by the device tests: see the tip's evidence.
(cherry picked from commit 87435362577424f2e7757ff69bcb292b401dc9ed)