[vulkan] Improve QueueSubmit handling
Change-Id: Id4036c9fe5113c0c193efed31c5328e8ab33475b
diff --git a/system/vulkan/func_table.cpp b/system/vulkan/func_table.cpp
index ff12cfe..3ce65a1 100644
--- a/system/vulkan/func_table.cpp
+++ b/system/vulkan/func_table.cpp
@@ -235,7 +235,8 @@
AEMU_SCOPED_TRACE("vkQueueSubmit");
auto vkEnc = HostConnection::get()->vkEncoder();
VkResult vkQueueSubmit_VkResult_return = (VkResult)0;
- vkQueueSubmit_VkResult_return = vkEnc->vkQueueSubmit(queue, submitCount, pSubmits, fence);
+ auto resources = ResourceTracker::get();
+ vkQueueSubmit_VkResult_return = resources->on_vkQueueSubmit(vkEnc, VK_SUCCESS, queue, submitCount, pSubmits, fence);
return vkQueueSubmit_VkResult_return;
}
static VkResult entry_vkQueueWaitIdle(