summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2019-07-09 18:02:03 -0400
committerGravatar FernandoS272019-07-14 12:00:28 -0400
commit5d31bab69a9cdc720347dfd69a9f5011b361e17a (patch)
treea662c10a776c0e91cd16c2a01b222369dcd2b1c1 /src
parentMerge pull request #2690 from SciresM/physmem_fixes (diff)
downloadyuzu-5d31bab69a9cdc720347dfd69a9f5011b361e17a.tar.gz
yuzu-5d31bab69a9cdc720347dfd69a9f5011b361e17a.tar.xz
yuzu-5d31bab69a9cdc720347dfd69a9f5011b361e17a.zip
Texture_Cache: Correct Linear Structural Match.
Diffstat (limited to 'src')
-rw-r--r--src/video_core/texture_cache/surface_base.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/video_core/texture_cache/surface_base.cpp b/src/video_core/texture_cache/surface_base.cpp
index 7a0fdb19b..6af9044ca 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)
75 75
76 // Linear Surface check 76 // Linear Surface check
77 if (!params.is_tiled) { 77 if (!params.is_tiled) {
78 if (std::tie(params.width, params.height, params.pitch) == 78 if (std::tie(params.height, params.pitch) == std::tie(rhs.height, rhs.pitch)) {
79 std::tie(rhs.width, rhs.height, rhs.pitch)) { 79 if (params.width == rhs.width) {
80 return MatchStructureResult::FullMatch; 80 return MatchStructureResult::FullMatch;
81 } else {
82 return MatchStructureResult::SemiMatch;
83 }
81 } 84 }
82 return MatchStructureResult::None; 85 return MatchStructureResult::None;
83 } 86 }