rasterizer_cache: Check levels when finding exact match
* Fixes validation errors in multiple games
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user