diff options
| author | 2023-11-17 22:23:48 +0200 | |
|---|---|---|
| committer | 2023-11-25 00:46:47 -0500 | |
| commit | 48388376206aaa7d887b41030019035a06203867 (patch) | |
| tree | 6dc27b3fc69d7ec4a1d4247fd0a00b7542ef72d4 /src/common | |
| parent | externals: Add oaknut submodule (diff) | |
| download | yuzu-48388376206aaa7d887b41030019035a06203867.tar.gz yuzu-48388376206aaa7d887b41030019035a06203867.tar.xz yuzu-48388376206aaa7d887b41030019035a06203867.zip | |
device_memory: Enable direct mapped addresses for nce
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/settings.cpp | 10 | ||||
| -rw-r--r-- | src/common/settings.h | 3 |
2 files changed, 10 insertions, 3 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp index 19dfe08da..167e984a6 100644 --- a/src/common/settings.cpp +++ b/src/common/settings.cpp | |||
| @@ -156,8 +156,14 @@ bool IsFastmemEnabled() { | |||
| 156 | return true; | 156 | return true; |
| 157 | } | 157 | } |
| 158 | 158 | ||
| 159 | bool IsNceEnabled(bool is_64bit) { | 159 | static bool is_nce_enabled = false; |
| 160 | return values.cpu_backend.GetValue() == CpuBackend::Nce && is_64bit; | 160 | |
| 161 | void SetNceEnabled(bool is_64bit) { | ||
| 162 | is_nce_enabled = values.cpu_backend.GetValue() == CpuBackend::Nce && is_64bit; | ||
| 163 | } | ||
| 164 | |||
| 165 | bool IsNceEnabled() { | ||
| 166 | return is_nce_enabled; | ||
| 161 | } | 167 | } |
| 162 | 168 | ||
| 163 | bool IsDockedMode() { | 169 | bool IsDockedMode() { |
diff --git a/src/common/settings.h b/src/common/settings.h index 389c747cb..fea639ee3 100644 --- a/src/common/settings.h +++ b/src/common/settings.h | |||
| @@ -573,7 +573,8 @@ bool IsGPULevelExtreme(); | |||
| 573 | bool IsGPULevelHigh(); | 573 | bool IsGPULevelHigh(); |
| 574 | 574 | ||
| 575 | bool IsFastmemEnabled(); | 575 | bool IsFastmemEnabled(); |
| 576 | bool IsNceEnabled(bool is_64bit = true); | 576 | void SetNceEnabled(bool is_64bit); |
| 577 | bool IsNceEnabled(); | ||
| 577 | 578 | ||
| 578 | bool IsDockedMode(); | 579 | bool IsDockedMode(); |
| 579 | 580 | ||