From 6210507a374c1b8c8b263eb0f69433ea8372e1bc Mon Sep 17 00:00:00 2001 From: Eladash Date: Sat, 18 Apr 2020 08:10:56 +0300 Subject: [PATCH] sys_rsx: Fix tiles on MAIN memory error checking --- rpcs3/Emu/Cell/lv2/sys_rsx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/Cell/lv2/sys_rsx.cpp b/rpcs3/Emu/Cell/lv2/sys_rsx.cpp index 1e85acafcf..be22bef106 100644 --- a/rpcs3/Emu/Cell/lv2/sys_rsx.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_rsx.cpp @@ -614,9 +614,9 @@ error_code sys_rsx_context_attribute(u32 context_id, u32 package_id, u64 a3, u64 { vm::reader_lock rlock; - for (u32 offs = (offset & ~0xfffff); offs <= range.end; offs += 0x100000) + for (u32 io = (offset >> 20), end = (range.end >> 20); io <= end; io++) { - if (render->iomap_table.io[offs >> 20] == umax) + if (render->iomap_table.ea[io] == umax) { return CELL_EINVAL; }