vulkan-cereal: external Vulkan memory for gfxstream + vhost-user
This adds initial external memory support for gfxstream, so when
Cuttlefish and friends transition to vhost-user, the virtio-gpu
device will relatively ready.
There are a few other things to do:
Namely:
- Cross platform abstrations rather than #ifdef everywhere
- Windows support
- Should we use UUIDs instead of physical device index?
- Should we nuke memory_index and rely on vkGetMemoryFdPropertiesKHR
instead?
- Passing in VkExternalMemoryBufferCreateInfo or
VkExternalMemoryImageCreateInfo if the validation layers
complains about it's absence
BUG=235485545
TEST=compile and run
Change-Id: I9858892fdfe16a785d990ce44cd09b68815c80cf
3 files changed