A tiled texture of more than one level (Buffer::new_tiled_texture) is a copy of the buffer's
bytes taken at use. Two leftovers from that change against what two x86 Macs answer:
1. Its take made the later levels only by the device's blit chain. A format generate_mipmaps
makes by the compute filter (an extended-range one, an 8-bit sRGB one held as its UNORM twin,
one without blits or linear filtering) or by the integer picks kept zeros past its first level,
where Metal makes every level. Now the making keeps generate_mipmaps' own plan of the format
(shadow::LaterLevels: the blit chain, the compute filter or the picks, announced as that call
announces them; Kept for a format it leaves or refuses, or a scratch past the device's
limits). The encoder makes a take's filter or picks run as it plans the copy
(EncoderCore::later_runs, beside sample_moves: the scratch, the kernels and sets), held by the
command buffer, and the copy in records it after its copy into the first level, behind a
barrier, as it records the blit chain: transfers of the image and dispatches over the scratch
alone, outside any render pass, before the first command that uses the texture. A filter take
counts in WorkCounts::mipmaps_filtered. mipmap_filter.rs and mipmap_pick.rs split their
recording into FilterRun and PickRun, which generate_mipmaps and the take share; what
generate_mipmaps records is unchanged. A run that cannot be made (no room for the scratch)
fails the command buffer, as a heap texture's sample moves do.
2. Its CPU calls reached every level in the image. On the Macs, getBytes and replaceRegion of
level 0 address the buffer's bytes, and a replaceRegion there makes the next use take the copy
again, as didModifyData does. Now level 0 reads and writes the bytes (Texture::level_in_image),
a write there marks the copy stale, and while the bytes are detached level 0 is refused
(NotImplemented(DetachedTexelAccess)) as a one-level texture's is. Levels 1 and up stay in the
image (the GPU reads a replace_region there until the next take), where the Macs' GPU never
sees such a write: an accepted difference in docs/API.md and the rustdoc. Blits are unchanged.
Tests (tests/tiled_texture_device.rs), each failing before its fix: RGBA8Uint's later levels are
plain Metal's picks exactly after a blit first use, and after a pass into level 1 as the first use
(level 1 cleared over the picks, the rest picked); BGR10XR's later levels are within the compute
filter's bound of the level above, the take counted once in mipmaps_filtered; level 0's get_bytes
reads the bytes before the first use, after a GPU write into level 0 (which the GPU reads) and
after a CPU write of them (which no level sees); a level-0 replace_region writes the bytes (the
rows' padding kept) and the next use takes the copy again, every level made from it. The detached
test now holds level 0 refused while detached and reads the new pages' bytes after a rebind.
Docs: new_tiled_texture's, replace_region's, get_bytes's and did_modify_data's rustdoc,
DetachedTexelAccess, WorkCounts::mipmaps_filtered, shadow.rs's Copies taken at use, the filter and
pick modules, docs/API.md (the tiled texture and an accepted difference), docs/RUNTIME-PORTING.md,
docs/FAST-PATHS.md's known gap narrowed to formats generate_mipmaps leaves or refuses, and
docs/REFUSALS.md regenerated (the MipmapGeneration sites moved). RUNTIME_VERSION and the
runtime-sources pin are left to the landing.
Checked here: cargo fmt. Clippy in three configurations, rustdoc and the device tests run as
cluster jobs on this commit.