Where the compositor's Vulkan driver has no VK_KHR_external_memory_fd and
VK_EXT_external_memory_dma_buf (Kirin Mali r18p0 and similar), every
client frame failed with INVALID_EXTERNAL_HANDLE and nothing reached the
screen. A linear single-plane dma-buf is now mapped and copied into a
host-visible buffer before each upload at its row pitch. Drivers that
import dma-bufs keep the existing path.
Based on XiaoyuZhou000's reference patch in ASEbrahim/MaliBridge#95.