A consumer that keeps an IOSurface's GPU copy as one optimal texture, on a host whose surface
path copies by runs of guest RAM (copies_guest_ram: no view of the pages is made), needs the
texture forms of the run copies, or its fill, upload and download go back through a view per
block or a staging buffer.
What: BlitCommandEncoder::copy_texture_from_host_ram(ram, runs, offset, bytes_per_row, size,
texture, slice, level, origin) and copy_texture_to_host_ram(texture, slice, level, origin, size,
ram, runs, offset, bytes_per_row), runtime extensions (Metal has none). `runs` is the surface's
bytes in order (the shape the consumer's run copies pass today); offset and bytes_per_row are
Metal's copyFromBuffer layout over those bytes. Each row's texels within a run and a chunk are
one vkCmdCopyBufferToImage / vkCmdCopyImageToBuffer region straight on the chunk's import
(bufferRowLength and bufferImageHeight 0; bufferOffset a multiple of the texel,
VUID-vkCmdCopyImageToBuffer-srcImage-07975; the subresource bounds 07971/07972), with no staging
buffer. A first-touch or CPU-only chunk goes through the existing StagedGather / StagedScatter,
which now take a buffer or an image target. Hazard tracking, dirty-page reports, imports held to
completion and the bytes outside the texels are as the buffer forms keep them. Refused as the
buffer forms are, and with Invalid / Problem::HostRam for the texture's own cases (its doc
extended); no new RuntimeGap, Degradation kind or WorkCounts field: the direct form shows in
host_ram_copy_regions with no staged copy. replay.rs logs the call (HostRamTextureCopy);
blit_texture.rs and blit_plan.rs helpers are shared (pub(super)). Runtime README and HOWTO
document it; the signature table blessed (+2 methods); REFUSALS regenerated. RUNTIME_VERSION 2484.
Verified: msi job m3-max-37991 (lavapipe, --cfg m2v_cpu_icd): clippy -p metal2vulkan-runtime
--all-targets --all-features -D warnings 0; nextest host_ram_texture_device + host_ram_copy_device
39 passed. m3-max-37997: "HOST-RAM-TEXTURE llvmpipe: fill regions 250, dispatches 0, staged 0" (a
300x200 BGRA8 Private texture, rows at 1280 bytes from byte 48, one row across a chunk end); the
staged test saw exactly one staged gather and one staged scatter. Plain and --cfg m2v_gpu clippy,
rustdoc and the 780M and Iris runs follow on development.