Skip to content

vrend: keep fd during set_type resource promotion

Keep the fd during set_type resource promotion to allow it to be exported during vkAllocateMemory dispatch and directly scanned out via dmabuf. Allow resource info to expose the fd directly. This allows vmm to directly scanout blob resources via the dmabuf fd.

This fixes the use case of qemu guest running gamescope + kmscube. This was tested with a qemu change to land after this to scanout via the fd.

Signed-off-by: Robert Beckett bob.beckett@collabora.com

Merge request reports