diff options
author | William Ho <willho@google.com> | 2022-04-18 11:19:01 -0700 |
---|---|---|
committer | William Ho <willho@google.com> | 2022-04-18 11:44:19 -0700 |
commit | 550560193a726f260779d9238ce60a38a023735a (patch) | |
tree | c14dcb0be2165778e237b7d8185dd53fa82b1993 | |
parent | eced1c6121155166b61e75a82c41d8cb7a1aed21 (diff) | |
download | vulkan-cereal-550560193a726f260779d9238ce60a38a023735a.tar.gz |
Added missing VkResults to VK_EMU_INIT_RETURN_ON_ERROR calls
Change-Id: I14d6b76d7d08c9ade208ea15a0a063f213d4a92c
-rw-r--r-- | stream-servers/vulkan/VkCommonOperations.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/stream-servers/vulkan/VkCommonOperations.cpp b/stream-servers/vulkan/VkCommonOperations.cpp index 8967cbfd..abf7677d 100644 --- a/stream-servers/vulkan/VkCommonOperations.cpp +++ b/stream-servers/vulkan/VkCommonOperations.cpp @@ -587,7 +587,8 @@ VkEmulation* createGlobalVkEmulation(VulkanDispatch* vk) { VkResult res = gvk->vkCreateInstance(&instCi, nullptr, &sVkEmulation->instance); if (res != VK_SUCCESS) { - VK_EMU_INIT_RETURN_ON_ERROR("Failed to create Vulkan instance."); + VK_EMU_INIT_RETURN_ON_ERROR("Failed to create Vulkan instance. Error %s.", + string_VkResult(res)); } // Create instance level dispatch. @@ -621,7 +622,8 @@ VkEmulation* createGlobalVkEmulation(VulkanDispatch* vk) { VkResult res = gvk->vkCreateInstance(&instCi, nullptr, &sVkEmulation->instance); if (res != VK_SUCCESS) { - VK_EMU_INIT_RETURN_ON_ERROR("Failed to create Vulkan 1.1 instance."); + VK_EMU_INIT_RETURN_ON_ERROR("Failed to create Vulkan 1.1 instance. Error %s.", + string_VkResult(res)); } init_vulkan_dispatch_from_instance( @@ -968,7 +970,8 @@ VkEmulation* createGlobalVkEmulation(VulkanDispatch* vk) { &sVkEmulation->device); if (res != VK_SUCCESS) { - VK_EMU_INIT_RETURN_ON_ERROR("Failed to create Vulkan device."); + VK_EMU_INIT_RETURN_ON_ERROR("Failed to create Vulkan device. Error %s.", + string_VkResult(res)); } // device created; populate dispatch table |