rasterizer_cache: Check levels when finding exact match

* Fixes validation errors in multiple games
This commit is contained in:
GPUCode
2023-02-11 17:54:42 +02:00
parent 6ba83db6dd
commit bc77e16653

View File

@ -9,8 +9,9 @@ namespace VideoCore {
bool SurfaceParams::ExactMatch(const SurfaceParams& other_surface) const {
return std::tie(other_surface.addr, other_surface.width, other_surface.height,
other_surface.stride, other_surface.pixel_format, other_surface.is_tiled) ==
std::tie(addr, width, height, stride, pixel_format, is_tiled) &&
other_surface.stride, other_surface.pixel_format, other_surface.is_tiled,
other_surface.levels) ==
std::tie(addr, width, height, stride, pixel_format, is_tiled, levels) &&
pixel_format != PixelFormat::Invalid;
}