From 273c266b781a66ccd5ee362bf700d4fa9b5af05e Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Tue, 16 May 2017 20:49:12 +0200 Subject: [PATCH] Silence a perf warning --- Windows/GPU/WindowsVulkanContext.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Windows/GPU/WindowsVulkanContext.cpp b/Windows/GPU/WindowsVulkanContext.cpp index 1d0dad0f52..6affd88f17 100644 --- a/Windows/GPU/WindowsVulkanContext.cpp +++ b/Windows/GPU/WindowsVulkanContext.cpp @@ -124,6 +124,9 @@ static VkBool32 VKAPI_CALL Vulkan_Dbg(VkDebugReportFlagsEXT msgFlags, VkDebugRep } message << "[" << pLayerPrefix << "] " << ObjTypeToString(objType) << " Code " << msgCode << " : " << pMsg << "\n"; + if (msgCode == 2) // Useless perf warning + return false; + // This seems like a bogus result when submitting two command buffers in one go, one creating the image, the other one using it. if (msgCode == 6 && startsWith(pMsg, "Cannot submit cmd buffer using image")) return false;