Draft: render/vulkan: Implement allocator
This is an initial attempt at allowing renderers to expose allocation functionality, allowing us to skip GBM initialization when using Vulkan drivers.
Based on !2648, where I stole most of the actual allocation code.
Todo:
-
Move to render/vulkan/allocator.c
-
Optimize use as render target by using the VkImage directly, rather than going through an export->import cycle (tried doing it once, got glitches) -
Test -
Hide behind WLR_VK_
env flag due to dangers?