mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-16 11:48:36 +12:00
rsx: Import, rebase and clean up the old detiling patches from 2021
This commit is contained in:
parent
5b46db5e6b
commit
3afc379746
9 changed files with 269 additions and 4 deletions
|
@ -288,7 +288,9 @@ namespace rsx
|
|||
|
||||
static inline u32 get_location(u32 addr)
|
||||
{
|
||||
return (addr >= rsx::constants::local_mem_base) ?
|
||||
// We don't really care about the actual memory map, it shouldn't be possible to use the mmio bar region anyway
|
||||
constexpr address_range local_mem_range = address_range::start_length(rsx::constants::local_mem_base, 0x1000'0000);
|
||||
return local_mem_range.overlaps(addr) ?
|
||||
CELL_GCM_LOCATION_LOCAL :
|
||||
CELL_GCM_LOCATION_MAIN;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue