From bddf3159ee5a8ae10056c9b50eafb1fbf4534bdd Mon Sep 17 00:00:00 2001 From: Samuliak Date: Thu, 22 May 2025 18:31:44 +0200 Subject: [PATCH] latte: check for mip levels in framebuffer fetch --- .../LegacyShaderDecompiler/LatteDecompilerAnalyzer.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Cafe/HW/Latte/LegacyShaderDecompiler/LatteDecompilerAnalyzer.cpp b/src/Cafe/HW/Latte/LegacyShaderDecompiler/LatteDecompilerAnalyzer.cpp index 62c0dba3..8eb3c974 100644 --- a/src/Cafe/HW/Latte/LegacyShaderDecompiler/LatteDecompilerAnalyzer.cpp +++ b/src/Cafe/HW/Latte/LegacyShaderDecompiler/LatteDecompilerAnalyzer.cpp @@ -910,18 +910,15 @@ void LatteDecompiler_analyze(LatteDecompilerShaderContext* shaderContext, LatteD // Check for dimension auto dim = shader->textureUnitDim[textureIndex]; - // TODO: 2D arrays could technically be supported as well + // TODO: 2D arrays could be supported as well if (dim != Latte::E_DIM::DIM_2D) continue; // Check for mip level - // TODO: uncomment? - /* auto lastMip = texRegister.word5.get_LAST_LEVEL(); - // TODO: multiple mip levels could technically be supported as well + // TODO: multiple mip levels could be supported as well if (lastMip != 0) continue; - */ Latte::E_GX2SURFFMT format = LatteTexture_ReconstructGX2Format(texRegister.word1, texRegister.word4);