From f5ee9b256ccd8e408d2efd498b7a0af7973fd341 Mon Sep 17 00:00:00 2001 From: DrChat Date: Thu, 22 Feb 2018 21:12:37 -0600 Subject: [PATCH] [Vulkan] Report vkCreateDebugReportCallbackEXT error codes --- src/xenia/ui/vulkan/vulkan_instance.cc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/xenia/ui/vulkan/vulkan_instance.cc b/src/xenia/ui/vulkan/vulkan_instance.cc index 32b135413..efadcfa39 100644 --- a/src/xenia/ui/vulkan/vulkan_instance.cc +++ b/src/xenia/ui/vulkan/vulkan_instance.cc @@ -330,10 +330,14 @@ void VulkanInstance::EnableDebugValidation() { VK_DEBUG_REPORT_ERROR_BIT_EXT | VK_DEBUG_REPORT_DEBUG_BIT_EXT; create_info.pfnCallback = &DebugMessageCallback; create_info.pUserData = this; - auto err = vk_create_debug_report_callback_ext(handle, &create_info, nullptr, - &dbg_report_callback_); - CheckResult(err, "vkCreateDebugReportCallbackEXT"); - XELOGVK("Debug validation layer enabled"); + auto status = vk_create_debug_report_callback_ext( + handle, &create_info, nullptr, &dbg_report_callback_); + if (status == VK_SUCCESS) { + XELOGVK("Debug validation layer enabled"); + } else { + XELOGVK("Debug validation layer failed to install; error %s", + to_string(status)); + } } void VulkanInstance::DisableDebugValidation() {