Row L212. Metal's API validation stops a copy between aliases in a placement
heap unless it copies between buffers, between linear textures of one row
stride, or entire texture surfaces. Source: probe overlapping_alias_copies.m
on an Apple M3 Max, macOS 27.0.1, jobs m3-max-81486 and m3-max-81493. The
runtime refused all of these as Gap::OverlappingCopy. It now refuses what
Metal stops as Refusal::AliasingCopy, and records nothing for it.
Form (blit.rs):
- buffer_copy: a region that meets a heap texture's memory, either way, is
Refusal::AliasingCopy (Metal: "blitting between aliasing resources is
defined on a placement heap only when using a blit method copying entire
texture surfaces, or when copying between buffers").
- texture_copy: two textures whose memory meets, one placed in a heap, that
are not both heap textures copying a whole level into a whole level
(whole_level: origin 0, size the level's extent, the view's first level
taken off) are Refusal::AliasingCopy. A texture in place over a heap
buffer against a heap texture is refused even for a whole level (Metal:
"... only when both textures are linear and have the same
bufferBytesPerRow value").
- The whole level between two heap textures stays Gap::OverlappingCopy,
counted, per the planner's ruling. That is how the consumer reaches
copyFromTexture:toTexture:, which Metal's validation takes and the M3
answers with the source's bytes at 0, 128 and 8320 bytes apart. No copy
command and no cut reads no byte it writes
(VUID-vkCmdCopyImage-pRegions-00124). The form through an image of the
runtime's, counted, is built once a guest's run counts the gap.
Docs: blit.rs's module and copy method docs; error.rs's Gap::OverlappingCopy
(REFUSALS.md regenerated); Metrics::overlapping_copies_refused; the runtime
README's blit encoders and their known gaps, which carry the M3's answer
and the VUID. The README also cites the M3's answer for a surface's buffer
and its own plane (job m3-max-81486). No conformance ledger row covers
these shapes.
Verified: refusal_surface.py --check exits 0. Green under the validation
layer, which fails a test on any message: the three tests pass, with the
rest of the 27 blit tests, at the series' tip on lavapipe (llvmpipe, LLVM
23.1.4; job m3-max-81597), the AMD Radeon 780M (RADV PHOENIX; m3-max-81592),
the NVIDIA GeForce RTX 2080 (m3-max-81600) and the AMD Radeon RX 7900 XTX
(RADV NAVI31; m3-max-81671). The runs built the series before its rebase
onto development; the patches are the same.