From 1093fe46d9d5a2ebdf72ddb3895b5acccdd05926 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sun, 13 Mar 2016 17:44:38 +0100 Subject: [PATCH] Revert "Replace ugly workaround with VK_LAYER_LUNARG_unique_objects which prevents handle reuse." This reverts commit 6342c07a19d5ab410cbc233a570488214923a9f8. --- Windows/GPU/WindowsVulkanContext.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Windows/GPU/WindowsVulkanContext.cpp b/Windows/GPU/WindowsVulkanContext.cpp index 999b0031c49a..5d9e0b79c409 100644 --- a/Windows/GPU/WindowsVulkanContext.cpp +++ b/Windows/GPU/WindowsVulkanContext.cpp @@ -119,6 +119,11 @@ static VkBool32 VKAPI_CALL Vulkan_Dbg(VkDebugReportFlagsEXT msgFlags, VkDebugRep } message << "[" << pLayerPrefix << "] " << ObjTypeToString(objType) << " Code " << msgCode << " : " << pMsg << "\n"; + // Getting some bizarre false positives for mapping image memory. + // https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/121 + if (msgCode == 6 && !memcmp(pMsg, "Cannot map", 10)) + return false; + #ifdef _WIN32 OutputDebugStringA(message.str().c_str()); if (msgFlags & VK_DEBUG_REPORT_ERROR_BIT_EXT) {