mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-16 11:48:36 +12:00
Make vm::get_super_ptr return contiguous memory
Cleanup RSX code complexity
This commit is contained in:
parent
72ba062b1a
commit
da6ce80f4f
13 changed files with 28 additions and 395 deletions
|
@ -2744,22 +2744,6 @@ namespace rsx
|
|||
return;
|
||||
|
||||
on_invalidate_memory_range(m_invalidated_memory_range);
|
||||
|
||||
// Clean the main memory super_ptr cache if invalidated
|
||||
for (auto It = main_super_memory_block.begin(); It != main_super_memory_block.end();)
|
||||
{
|
||||
const auto block_range = address_range::start_length(It->first, It->second.size());
|
||||
|
||||
if (m_invalidated_memory_range.overlaps(block_range))
|
||||
{
|
||||
It = main_super_memory_block.erase(It);
|
||||
}
|
||||
else
|
||||
{
|
||||
It++;
|
||||
}
|
||||
}
|
||||
|
||||
m_invalidated_memory_range.invalidate();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue