-
-
Save Pokechu22/c8c0e2d5a10db69af3ad264a7fb5494c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp | |
index 14cf207034..0a67fed4d7 100644 | |
--- a/Source/Core/VideoCommon/TextureCacheBase.cpp | |
+++ b/Source/Core/VideoCommon/TextureCacheBase.cpp | |
@@ -1093,7 +1093,7 @@ public: | |
levels.push_back({{width, height, row_length}, buffer}); | |
} | |
- bool HasArbitraryMipmaps(u8* downsample_buffer) const | |
+ bool HasArbitraryMipmaps(std::string_view name, u8* downsample_buffer) const | |
{ | |
if (levels.size() < 2) | |
return false; | |
@@ -1131,6 +1131,7 @@ public: | |
// Find the average difference between pixels in this level but downsampled | |
// and the next level | |
auto diff = mip.AverageDiff(dst); | |
+ INFO_LOG_FMT(VIDEO, "{} level {}: {}", name, i, diff); | |
total_diff += diff; | |
std::swap(src, dst); | |
@@ -1660,7 +1661,7 @@ TextureCacheBase::GetTexture(const int textureCacheSafetyColorSampleSize, | |
entry->SetNotCopy(); | |
std::string basename; | |
- if (g_ActiveConfig.bDumpTextures && !hires_tex) | |
+ if (g_ActiveConfig.bDumpTextures && !hires_tex || true) | |
{ | |
basename = HiresTexture::GenBaseName(texture_info, true); | |
} | |
@@ -1707,8 +1708,9 @@ TextureCacheBase::GetTexture(const int textureCacheSafetyColorSampleSize, | |
} | |
} | |
- entry->has_arbitrary_mips = hires_tex ? hires_tex->HasArbitraryMipmaps() : | |
- arbitrary_mip_detector.HasArbitraryMipmaps(dst_buffer); | |
+ entry->has_arbitrary_mips = hires_tex ? | |
+ hires_tex->HasArbitraryMipmaps() : | |
+ arbitrary_mip_detector.HasArbitraryMipmaps(basename, dst_buffer); | |
if (g_ActiveConfig.bDumpTextures && !hires_tex) | |
{ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment