From 855c7179b78733e73ac165665922a29921ab0e45 Mon Sep 17 00:00:00 2001 From: baldurk Date: Sat, 30 Apr 2016 17:18:24 +0200 Subject: [PATCH] Only filter & print debug messages on read --- renderdoc/driver/vulkan/vk_core.cpp | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/renderdoc/driver/vulkan/vk_core.cpp b/renderdoc/driver/vulkan/vk_core.cpp index d1481ad7f..436258804 100644 --- a/renderdoc/driver/vulkan/vk_core.cpp +++ b/renderdoc/driver/vulkan/vk_core.cpp @@ -2077,23 +2077,26 @@ VkBool32 WrappedVulkan::DebugCallback( const char* pLayerPrefix, const char* pMessage) { - bool isDS = !strcmp(pLayerPrefix, "DS"); + if(m_State < WRITING) + { + bool isDS = !strcmp(pLayerPrefix, "DS"); - // All access mask/barrier messages. - // These are just too spammy/false positive/unreliable to keep - if(isDS && messageCode == 12) - return false; + // All access mask/barrier messages. + // These are just too spammy/false positive/unreliable to keep + if(isDS && messageCode == 12) + return false; - bool isMEM = !strcmp(pLayerPrefix, "MEM"); + bool isMEM = !strcmp(pLayerPrefix, "MEM"); - // Memory is aliased between image and buffer - // ignore memory aliasing warning - we make use of the memory in disjoint ways - // and copy image data over separately, so our use is safe - // no location set for this one, so ignore by code (maybe too coarse) - if(isMEM && messageCode == 3) - return false; + // Memory is aliased between image and buffer + // ignore memory aliasing warning - we make use of the memory in disjoint ways + // and copy image data over separately, so our use is safe + // no location set for this one, so ignore by code (maybe too coarse) + if(isMEM && messageCode == 3) + return false; - RDCWARN("[%s:%u/%d] %s", pLayerPrefix, (uint32_t)location, messageCode, pMessage); + RDCWARN("[%s:%u/%d] %s", pLayerPrefix, (uint32_t)location, messageCode, pMessage); + } return false; }