[vulkan] Representation of Vulkan resources
bug: 111137294
bug: 119104304
bug: 119157982
Even though the intent of the driver is to be as passthrough as
possible, we still need to have custom internal representations of
Vulkan resources:
1. Android Vulkan loader requires HWVULKAN_DISPATCH_MAGIC at the
beginning of dispatchable handles (instance, physical device, device,
queue, command buffer).
2. For non-dispatchable handles, we are going to have some level of
custom work anyway because
- VkDeviceMemory needs to have special handling for crossing VM
boundary, either with pipe streaming or DMA.
- Allocation callback support.
+ Rename to Resources.h/cpp, HandleWrappers isn't desriptive enough
Change-Id: Id1a554c9cf361a68adffb7b29940766172298fce
4 files changed