1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-23 11:13:19 +01:00

rsx: Implement DECR memory layout (#7906)

This commit is contained in:
Eladash 2020-03-31 07:12:30 +03:00 committed by GitHub
parent 1510505b30
commit 29be815302
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -186,7 +186,8 @@ error_code sys_rsx_context_allocate(vm::ptr<u32> context_id, vm::ptr<u64> lpar_d
dmaControl.put = 0;
dmaControl.ref = 0; // Set later to -1 by cellGcmSys
if (false/*system_mode == CELL_GCM_SYSTEM_MODE_IOMAP_512MB*/)
if ((true/*system_mode & something*/ || g_cfg.video.decr_memory_layout)
&& g_cfg.core.debug_console_mode)
rsx::get_current_renderer()->main_mem_size = 0x20000000; //512MB
else
rsx::get_current_renderer()->main_mem_size = 0x10000000; //256MB

View File

@ -134,6 +134,7 @@ struct cfg_root : cfg::node
cfg::_int<0, 30000000> driver_recovery_timeout{ this, "Driver Recovery Timeout", 1000000, true };
cfg::_int<0, 16667> driver_wakeup_delay{ this, "Driver Wake-Up Delay", 1, true };
cfg::_int<1, 1800> vblank_rate{ this, "Vblank Rate", 60, true }; // Changing this from 60 may affect game speed in unexpected ways
cfg::_bool decr_memory_layout{ this, "DECR memory layout", false}; // Force enable increased allowed main memory range as DECR console
struct node_vk : cfg::node
{