summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-04-20 01:01:29 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-04-20 01:01:29 +0000
commit6abb3cbca4c89ee8aa1e5381ddffb4995ad35a0e (patch)
treec14dcb0be2165778e237b7d8185dd53fa82b1993
parente28afadb36e8b93e38e224995c5f8424eeb60e03 (diff)
parent1229b7277657128a2f1721d7bf583008212c914e (diff)
downloadvulkan-cereal-6abb3cbca4c89ee8aa1e5381ddffb4995ad35a0e.tar.gz
Snap for 8474198 from 1229b7277657128a2f1721d7bf583008212c914e to tm-release
Change-Id: I4ece0b5df3f6a70ff46053baa9bd3abeeabd3b0f
-rw-r--r--stream-servers/vulkan/VkCommonOperations.cpp9
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