GS/HW: Ensure mipmaps aren't generated on hash cache textures

This commit is contained in:
Stenzek 2024-06-23 11:26:43 +10:00 committed by Connor McLaughlin
parent f6a7dc52e2
commit 57d225437e
1 changed files with 3 additions and 2 deletions

View File

@ -5366,8 +5366,7 @@ GSTextureCache::HashCacheEntry* GSTextureCache::LookupHashCache(const GIFRegTEX0
if (lod) if (lod)
{ {
const int basemip = lod->x; const int basemip = lod->x;
const int nmips = lod->y - lod->x + 1; for (int mip = 1; mip < tlevels; mip++)
for (int mip = 1; mip < nmips; mip++)
{ {
const GIFRegTEX0 MIP_TEX0{g_gs_renderer->GetTex0Layer(basemip + mip)}; const GIFRegTEX0 MIP_TEX0{g_gs_renderer->GetTex0Layer(basemip + mip)};
std::pair<u8, u8> mip_alpha_minmax; std::pair<u8, u8> mip_alpha_minmax;
@ -5379,6 +5378,8 @@ GSTextureCache::HashCacheEntry* GSTextureCache::LookupHashCache(const GIFRegTEX0
alpha_minmax.second = std::max(alpha_minmax.second, mip_alpha_minmax.second); alpha_minmax.second = std::max(alpha_minmax.second, mip_alpha_minmax.second);
} }
} }
tex->ClearMipmapGenerationFlag();
} }
// remove the palette hash when using paltex/indexed // remove the palette hash when using paltex/indexed