VERY experimental Nintendo Switch 2 emulator
C++
Texture_Cache: Correct Linear Structural Match.
Fernando Sahmkowc9c7b13f7685
diff --git a/src/video_core/texture_cache/surface_base.cpp b/src/video_core/texture_cache/surface_base.cppindex 7a0fdb19bc..6af9044cad 100644--- a/src/video_core/texture_cache/surface_base.cpp+++ b/src/video_core/texture_cache/surface_base.cpp@@ -75,9 +75,12 @@ MatchStructureResult SurfaceBaseImpl::MatchesStructure(const SurfaceParams& rhs)// Linear Surface checkif (!params.is_tiled) {- if (std::tie(params.width, params.height, params.pitch) ==- std::tie(rhs.width, rhs.height, rhs.pitch)) {- return MatchStructureResult::FullMatch;+ if (std::tie(params.height, params.pitch) == std::tie(rhs.height, rhs.pitch)) {+ if (params.width == rhs.width) {+ return MatchStructureResult::FullMatch;+ } else {+ return MatchStructureResult::SemiMatch;+ }}return MatchStructureResult::None;}