From 883c2ecdec6c6690179852fb6ffb12b76cbef1e3 Mon Sep 17 00:00:00 2001 From: psucien Date: Thu, 17 Oct 2024 23:06:58 +0200 Subject: [PATCH] hot-fix: address check in mips overlap heuristic --- src/video_core/texture_cache/image_info.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/video_core/texture_cache/image_info.cpp b/src/video_core/texture_cache/image_info.cpp index 521e4118f..efb74ffae 100644 --- a/src/video_core/texture_cache/image_info.cpp +++ b/src/video_core/texture_cache/image_info.cpp @@ -329,6 +329,11 @@ bool ImageInfo::IsMipOf(const ImageInfo& info) const { return false; } + // Ensure that address matches too. + if ((info.guest_address + info.mips_layout[mip].offset) != guest_address) { + return false; + } + return true; }