Files
metal2vulkan/crates
Anees Iqbal f04d9fa356 dma_buf_imports: memfd memory with no source is a copy where the device refuses its pointer
shared_memory_is_refused_without_a_working_source still expected RADV to refuse a no-copy
buffer over memfd pages made with no dma-buf source. Since 3f69d1af77 the runtime makes that
buffer over a copy of the pages (copied.rs, counted as copied_host_buffers_device_refused), as
Metal makes a no-copy buffer over any page, so the test's first check failed on every RADV
device (an RX 7900 XTX at 0b52add1c9) before it reached the refusals it is about.

The no-source case now expects the buffer on every device: on RADV a copy
(HostBacking::Copied, one copied_host_buffers_device_refused), on NVIDIA and lavapipe the
pointer's import (ImportedByPointer, none counted); a driver not measured has its answer
printed. The rest is unchanged: a failing source keeps the device's refusal and is called
once, short chunks and a chunk that is no dma-buf are misuse, and no dma-buf import is counted.

Verified: to be run on the XTX and the 780M (RADV) and lavapipe; the runs go in the report.
(cherry picked from commit bd6676c26bc68b87707c26f4eea15c12d87ecb60)
(cherry picked from commit dadada31c211c8fccf1f909beb259937bafe3d14)
2026-11-08 22:48:22 -08:00
..