Files
metal2vulkan/crates
Anees Iqbal 4d95375fe2 Tests: a layer pass's backdrop read moves no copy where the device reads it through a snapshot
a_layer_pass_reading_its_own_target_copies_in_its_read_alone_after_the_first took its counts
from lavapipe alone (m3-max-20039), where the read with no barrier reads the copy taken before
the pass and moves its 18x6 texels each frame. On a device that takes the snapshot path (the
XTX and the 780M: the snapshot draws' features, a fetch in the pixel interlock, and feedback loop
usage on the plane's shadow image), a read over a buffer's bytes takes the snapshot at any area
(render/snapshot.rs, over_bytes), so no copy moves and the test failed "moved 0 vs 108" on both
AMD GPUs (m3-max-27687, 27688, 27795).

The expectation now follows the runtime's own predicate for the device and the texture
(reads_through_snapshots: color_write_masks, through_storage, the image's feedback loop usage):
from the second command buffer on the read is counted through a snapshot exactly where the
predicate says so, and its copy moves 18x6 texels where it reads the copy, none where it takes
the snapshot. The line printed per frame names the device, the predicate and the count.

Verified: XTX (RADV NAVI31) m3-max-27883 passes, one snapshot read a frame and the copies in
skipped against the standing from frame 1; lavapipe m3-max-27900 passes, 108 texels a frame.
2026-11-13 20:13:22 -08:00
..