turnip/kgsl: Support external memory via ION buffers
However, since android12-5.10
kernel has ION disabled and the
buffers should be allocated via dma_heap.
See https://source.android.com/devices/architecture/kernel/dma-buf-heaps
This is not implemented in this commit.
I'm exposing only VK_KHR_external_memory_fd
. Blob does not expose VK_EXT_external_memory_dma_buf
until android12-5.10
kernel and v604 driver. And while ION buffers seem to be dma buffers - I'm not entirely sure that there are no gotchas there.
Anybody has a device with android12-5.10
kernel? Because even Android 12 GSIs are using old kernel... So I couldn't test anything if even write the dma_heap path.