From c37c07825467a375ab09042dda78f7fb00ace578 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Mon, 13 Sep 2021 00:07:01 -0700 Subject: [PATCH] Vulkan: Only force 32-bit if needed. If there are mips already, we can keep 16-bit. --- GPU/Vulkan/TextureCacheVulkan.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/GPU/Vulkan/TextureCacheVulkan.cpp b/GPU/Vulkan/TextureCacheVulkan.cpp index 35504f6d75..282035ddb4 100644 --- a/GPU/Vulkan/TextureCacheVulkan.cpp +++ b/GPU/Vulkan/TextureCacheVulkan.cpp @@ -757,8 +757,10 @@ void TextureCacheVulkan::BuildTexture(TexCacheEntry *const entry) { if (g_Config.iTexFiltering == TEX_FILTER_AUTO_MAX_QUALITY) { // Boost the number of mipmaps. int maxPossibleMipmaps = log2i(std::min(gstate.getTextureWidth(0), gstate.getTextureHeight(0))); - maxLevelToGenerate = maxPossibleMipmaps; - dstFmt = VK_FORMAT_R8G8B8A8_UNORM; + if (maxPossibleMipmaps > maxLevelToGenerate) { + maxLevelToGenerate = maxPossibleMipmaps; + dstFmt = VK_FORMAT_R8G8B8A8_UNORM; + } } int scaleFactor = standardScaleFactor_;