Browse Source

Texture_Cache: Correct Linear Structural Match.

nce_cpp
Fernando Sahmkow 7 years ago
committed by FernandoS27
parent
commit
c9c7b13f76
  1. 7
      src/video_core/texture_cache/surface_base.cpp

7
src/video_core/texture_cache/surface_base.cpp

@ -75,9 +75,12 @@ MatchStructureResult SurfaceBaseImpl::MatchesStructure(const SurfaceParams& rhs)
// Linear Surface check // Linear Surface check
if (!params.is_tiled) { if (!params.is_tiled) {
if (std::tie(params.width, params.height, params.pitch) ==
std::tie(rhs.width, rhs.height, rhs.pitch)) {
if (std::tie(params.height, params.pitch) == std::tie(rhs.height, rhs.pitch)) {
if (params.width == rhs.width) {
return MatchStructureResult::FullMatch; return MatchStructureResult::FullMatch;
} else {
return MatchStructureResult::SemiMatch;
}
} }
return MatchStructureResult::None; return MatchStructureResult::None;
} }

Loading…
Cancel
Save