diff options
| author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-07-09 18:02:03 -0400 |
|---|---|---|
| committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-07-14 12:00:28 -0400 |
| commit | c9c7b13f7685d059fa8e2a5958e9538137293df6 (patch) | |
| tree | a662c10a776c0e91cd16c2a01b222369dcd2b1c1 /src/video_core/texture_cache/surface_base.cpp | |
| parent | 474c698422b3431bbb8956045055678e9ac0f67c (diff) | |
Texture_Cache: Correct Linear Structural Match.
Diffstat (limited to 'src/video_core/texture_cache/surface_base.cpp')
| -rw-r--r-- | src/video_core/texture_cache/surface_base.cpp | 9 |
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 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 check if (!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; } |
