Ignore validation layer message with high false positive rate

This commit is contained in:
baldurk
2017-12-11 13:29:15 +00:00
parent 2a83eca969
commit 24803cd58c
+6
View File
@@ -2538,6 +2538,12 @@ VkBool32 WrappedVulkan::DebugCallback(VkDebugReportFlagsEXT flags,
if(isMEM && messageCode == 3)
return false;
// Cannot read invalid region of memory
// The validation layers can't track simultaneous use of the same memory in multiple buffers, so
// misreports any buffer which was filled by initial states (whole-memory buffer copies).
if(isMEM && messageCode == 15)
return false;
RDCWARN("[%s:%u/%d] %s", pLayerPrefix, (uint32_t)location, messageCode, pMessage);
}