diff options
author | Juan Linietsky <juan@godotengine.org> | 2019-06-19 17:03:19 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2020-02-11 11:53:27 +0100 |
commit | 42b44f43ee52eb664d3610d0fdae0eff14c00f0a (patch) | |
tree | 3125054b1d86f9eb1b10dd760b12010c3d6a1e89 /drivers/vulkan/vulkan_context.cpp | |
parent | 9b0dd4f571ff431e23b9097e7f29746f4157be12 (diff) | |
download | redot-engine-42b44f43ee52eb664d3610d0fdae0eff14c00f0a.tar.gz |
Basic 2D engine is more or less working, needs more work for editor to be usable.
Diffstat (limited to 'drivers/vulkan/vulkan_context.cpp')
-rw-r--r-- | drivers/vulkan/vulkan_context.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/vulkan/vulkan_context.cpp b/drivers/vulkan/vulkan_context.cpp index c71923ec6f..991429f963 100644 --- a/drivers/vulkan/vulkan_context.cpp +++ b/drivers/vulkan/vulkan_context.cpp @@ -18,6 +18,12 @@ VKAPI_ATTR VkBool32 VKAPI_CALL VulkanContext::_debug_messenger_callback(VkDebugU char *message = (char *)malloc(strlen(pCallbackData->pMessage) + 5000); ERR_FAIL_COND_V(!message, false); + //This error needs to be ignored because the AMD allocator will mix up memory types on IGP processors + if (strstr(pCallbackData->pMessage, "Mapping an image with layout") != NULL && + strstr(pCallbackData->pMessage, "can result in undefined behavior if this memory is used by the device") != NULL) { + return VK_FALSE; + } + if (messageSeverity & VK_DEBUG_UTILS_MESSAGE_SEVERITY_VERBOSE_BIT_EXT) { strcat(prefix, "VERBOSE : "); } else if (messageSeverity & VK_DEBUG_UTILS_MESSAGE_SEVERITY_INFO_BIT_EXT) { |