vk1.2: [7] [vulkan] Add annotations for device memory virtualization

bug: 121420031

We need to virtualize VkDeviceMemory objects in the guest; however,
there are many Vulkan API calls and structs that require transformation
back to the "real" VkDeviceMemory object.

This CL adds annotations to the XML where these can happen:

devicememoryhandle
devicememoryoffset
devicememorysize
devicememorytypeindex
devicememorytypebits

Each such annotation key corresponds to a value that is the ID of the
syntactically abstract VkDeviceMemory field; this is to be able to
associate the offset, typeindex, size, etc. fields with the same
VkDeviceMemory field. While being slightly harder to work with than
"len" attributes, but duplicates less information.

Also, in the future, if a struct or API call contains references to two
different VkDeviceMemory fields, we can tell them apart more
unambiguously.

Test: Re-ran android/scripts/generate-vulkan-sources.sh, no crashes,
no code changes

Bug: b/179480537
Original change: aosp/1212374

Change-Id: Id82abdf22fb6346eb4fcc81f20e5b79cf0ef8b62
1 file changed
tree: 3b4efe8110e19ef00353a91d99e05bb5c8625301
  1. registry/