VulkanDebug log fix, reduce log spam

This commit is contained in:
Henrik Rydgård 2023-05-30 18:32:33 +02:00
parent 49ecc01556
commit e9e95d23ce
2 changed files with 3 additions and 11 deletions

View File

@ -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;
}

View File

@ -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);