codegen: vulkan: Handle vkGetDeviceQueue2() correctly
This CL regenerates the VkEncoder code from aosp/2393626.
Original CL description:
This adds handle creation info for vkQueue got from
vkGetDeviceQueue2() (in encoder) and adds a custom
global state decoder function for vkGetDeviceQueue2()
(in decoder).
Bug: fxbug.dev/119990
Change-Id: Ic804d1ea4679a4156ce16a2c0d625c761c6d5278
diff --git a/system/vulkan_enc/VkEncoder.cpp b/system/vulkan_enc/VkEncoder.cpp
index 28fa33b..5d96705 100644
--- a/system/vulkan_enc/VkEncoder.cpp
+++ b/system/vulkan_enc/VkEncoder.cpp
@@ -18605,9 +18605,11 @@
healthMonitorAnnotation_packetContents.resize(watchdogBufSize);
memcpy(&healthMonitorAnnotation_packetContents[0], packetBeginPtr, watchdogBufSize);
}
+ stream->setHandleMapping(sResourceTracker->createMapping());
uint64_t cgen_var_2;
stream->read((uint64_t*)&cgen_var_2, 8);
stream->handleMapping()->mapHandles_u64_VkQueue(&cgen_var_2, (VkQueue*)pQueue, 1);
+ stream->unsetHandleMapping();
sResourceTracker->on_vkGetDeviceQueue2(this, device, pQueueInfo, pQueue);
++encodeCount;
;