Files
metal2vulkan/crates
Anees Iqbal f489825ff1 Test that a recycled memoryless texture's resolve reads zero, never old samples
What: tests::memoryless_fresh (a device test). A memoryless 4x BGRA8Unorm
color and a 4x Depth32Float depth are each cleared by a pass of no draw call
and resolved, then released. A memoryless texture of the same descriptor
takes the parked image (images_recycled). A pass of no draw call that loads
it DontCare and resolves it must write zero into its resolve texture, never
the earlier clear. It prints MEMORYLESS-FRESH with what it read.
memoryless_dont_care_pass_costs (ignored) prints MEMORYLESS-COST: commit to
completion of one such pass over a 1920x1080 4x attachment, made once,
after warm-up passes.

Why: a new memoryless texture held what its image's memory held, and a
DontCare load left it there. Its resolve, or a draw's depth and stencil
tests, read it. That memory may hold a released texture's samples, of
another process where a consumer's processes share the device.

Verified: the neg ran as 1e042c1a00 (an earlier form expecting the clear
depth): lavapipe job 24146 and Iris job 24160 ("MEMORYLESS-FRESH
BGRA8Unorm on Intel(R) Iris(R) Xe Graphics (RPL-P): other bytes").
2026-11-12 21:16:23 -08:00
..