Skip to content

lavapipe: Implement `VK_EXT_external_memory_dma_buf`

Continuation of !16224 based on the feedback @zmike received to use udmabuf.

These changes modify zmike's MR to use the udmabuf driver to allocate a dmabuf in userspace for export. Additionally these changes will also try to actually import a dmabuf with mmap to read on the CPU. This will only work with a dmabuf representing a linear buffer that has be created with the same read/write flags as the mmap operation.

I rebased his changes against main and then modified the relevant commits to use udmabuf instead for allocation. I tested these changes with CTS, as well as using weston + weston-simple-dmabuf-egl.

Edited by Lucas Fryzek

Merge request reports