Files
metal2vulkan/crates
Anees Iqbal 699d9bdc1d rt surface: every allocation of a dma-buf surface's memory takes device addresses
The Iris Xe (ANV, Mesa 26.2.6) refused Surface::buffer's import of a dma-buf surface with
VK_ERROR_INVALID_EXTERNAL_HANDLE at vkAllocateMemory (m3-max-53411), after the fd's query and the
buffer's requirements listed the type and the planes' imports into it had succeeded. The buffer's
import asks device addresses, which rt's buffers need (VUID-vkBindBufferMemory-bufferDeviceAddress-03339);
the allocation the dma-buf came from and the planes' imports did not. The expected cause is a
driver that keeps one set of flags per payload in a device. The allocation and each plane's import
now take device addresses too, one form on every device, so every allocation of one payload in
the device asks the same.

Verified: nothing yet; the Iris rerun decides whether this is the cause.
2026-11-19 10:50:42 -08:00
..