From 7aa561cc2de7566b906278a690ab35b5d816b05c Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 8 Mar 2016 00:06:15 +0100 Subject: [PATCH] Remove a load of validation layer filters that aren't needed anymore * This is against the master build of the validation layers. --- renderdoc/driver/vulkan/vk_core.cpp | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/renderdoc/driver/vulkan/vk_core.cpp b/renderdoc/driver/vulkan/vk_core.cpp index 3ef9a7e5b..bd9874062 100644 --- a/renderdoc/driver/vulkan/vk_core.cpp +++ b/renderdoc/driver/vulkan/vk_core.cpp @@ -1942,12 +1942,6 @@ VkBool32 WrappedVulkan::DebugCallback( const char* pLayerPrefix, const char* pMessage) { - bool isSC = !strcmp(pLayerPrefix, "SC"); - - // Just way too spammy and inaccurate - if(isSC) - return false; - bool isDS = !strcmp(pLayerPrefix, "DS"); // All access mask/barrier messages. @@ -1955,22 +1949,6 @@ VkBool32 WrappedVulkan::DebugCallback( if(isDS && messageCode == 11) return false; - // Recommended to use LOAD_OP_CLEAR - // Optimisation that we don't really need to do and increases complexity - // a fair amount. - if(isDS && location == 5454) - return false; - - // Can't vkUpdateDescriptorSets() on descriptor set that is in use - // unfortunately this fires erroneously on initial contents - if(isDS && location == 2290) - return false; - - // Fence 0 is already in use by another submission. - // Invalid error, not accounting for VK_NULL_HANDLE as fence parameter - if(isDS && messageCode == 14 && object == 0) - return false; - bool isMEM = !strcmp(pLayerPrefix, "MEM"); // Memory is aliased between image and buffer @@ -1979,12 +1957,6 @@ VkBool32 WrappedVulkan::DebugCallback( // no location set for this one, so ignore by code (maybe too coarse) if(isMEM && messageCode == 3) return false; - - // cannot read invalid memory - // this message is a good one, but it can't detect storage writes from shader - // at the moment so memory is wrongly marked as invalid - if(isMEM && location == 488) - return false; RDCWARN("[%s:%u/%d] %s", pLayerPrefix, (uint32_t)location, messageCode, pMessage); return false;