From 39ef39aa4e7cc939367ce4f7727eaea74e897eec Mon Sep 17 00:00:00 2001 From: kd-11 Date: Fri, 24 Dec 2021 14:11:47 +0300 Subject: [PATCH] rsx: Exercise caution when testing for overlaps in invalidated sections --- rpcs3/Emu/RSX/Common/texture_cache.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/Common/texture_cache.h b/rpcs3/Emu/RSX/Common/texture_cache.h index ec08506640..1ebd1404c4 100644 --- a/rpcs3/Emu/RSX/Common/texture_cache.h +++ b/rpcs3/Emu/RSX/Common/texture_cache.h @@ -505,8 +505,10 @@ namespace rsx AUDIT(other != surface); if (!other->is_flushable()) { - if (other->overlaps(*surface, section_bounds::full_range)) + if (other->overlaps(*surface, section_bounds::confirmed_range)) { + // This should never happen. It will raise exceptions later due to a dirty region being locked + rsx_log.error("Excluded region overlaps with flushed surface!"); other->set_dirty(true); } }