From e9e95d23ceeea830474cc02dc4e2c77da1cb853d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 30 May 2023 18:32:33 +0200 Subject: [PATCH] VulkanDebug log fix, reduce log spam --- Common/GPU/Vulkan/VulkanDebug.cpp | 10 +--------- GPU/Common/FramebufferManagerCommon.cpp | 4 ++-- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/Common/GPU/Vulkan/VulkanDebug.cpp b/Common/GPU/Vulkan/VulkanDebug.cpp index b91e0bb9bb..851d5dbb7c 100644 --- a/Common/GPU/Vulkan/VulkanDebug.cpp +++ b/Common/GPU/Vulkan/VulkanDebug.cpp @@ -57,7 +57,7 @@ VKAPI_ATTR VkBool32 VKAPI_CALL VulkanDebugUtilsCallback( // We really need that performance flag check to sort out the stuff that matters. // Will enable it soon, but it'll take some fixing. // - //if (messageSeverity & VK_DEBUG_UTILS_MESSAGE_TYPE_PERFORMANCE_BIT_EXT) + if (messageType & VK_DEBUG_UTILS_MESSAGE_TYPE_PERFORMANCE_BIT_EXT) return false; break; @@ -82,14 +82,6 @@ VKAPI_ATTR VkBool32 VKAPI_CALL VulkanDebugUtilsCallback( // Extended validation (ARM best practices) // Non-fifo validation not recommended return false; - case -564812795: - case 369680064: - case 307231540: - case 618171435: // SHADER_ACCESS_READ - case 1774732925: // same but different - case -1539028524: // image layout in draw - // wip - return false; default: break; } diff --git a/GPU/Common/FramebufferManagerCommon.cpp b/GPU/Common/FramebufferManagerCommon.cpp index 1e1fa344a5..7d48c9ac06 100644 --- a/GPU/Common/FramebufferManagerCommon.cpp +++ b/GPU/Common/FramebufferManagerCommon.cpp @@ -1443,7 +1443,7 @@ Draw::Texture *FramebufferManagerCommon::MakePixelTexture(const u8 *srcPixels, G gpuStats.numDrawPixels++; gpuStats.numTexturesDecoded++; // Separate stat for this later? - INFO_LOG(G3D, "Creating drawPixelsCache texture: %dx%d", tex->Width(), tex->Height()); + // INFO_LOG(G3D, "Creating drawPixelsCache texture: %dx%d", tex->Width(), tex->Height()); DrawPixelsEntry entry{ tex, frameNumber }; drawPixelsCache_.push_back(entry); @@ -1700,7 +1700,7 @@ void FramebufferManagerCommon::DecimateFBOs() { for (auto it = drawPixelsCache_.begin(); it != drawPixelsCache_.end(); ) { int age = draw_->GetFrameCount() - it->frameNumber; if (age > 10) { - INFO_LOG(G3D, "Releasing drawPixelsCache texture: %dx%d", it->tex->Width(), it->tex->Height()); + // INFO_LOG(G3D, "Releasing drawPixelsCache texture: %dx%d", it->tex->Width(), it->tex->Height()); it->tex->Release(); it->tex = nullptr; it = drawPixelsCache_.erase(it);