summaryrefslogtreecommitdiffstats
path: root/src/video_core/memory_manager.cpp
diff options
context:
space:
mode:
authorKelebek1 <eeeedddccc@hotmail.co.uk>2023-06-19 01:19:28 +0200
committerKelebek1 <eeeedddccc@hotmail.co.uk>2023-06-19 01:19:50 +0200
commit711190bb6708f822a3bdb7afd30168d2cc3ed0e4 (patch)
treeefb7e569f5ccf3882870c3f8a6e1359cf8cbc4bb /src/video_core/memory_manager.cpp
parentMerge pull request #10801 from 8bitDream/fix_aspect (diff)
downloadyuzu-711190bb6708f822a3bdb7afd30168d2cc3ed0e4.tar
yuzu-711190bb6708f822a3bdb7afd30168d2cc3ed0e4.tar.gz
yuzu-711190bb6708f822a3bdb7afd30168d2cc3ed0e4.tar.bz2
yuzu-711190bb6708f822a3bdb7afd30168d2cc3ed0e4.tar.lz
yuzu-711190bb6708f822a3bdb7afd30168d2cc3ed0e4.tar.xz
yuzu-711190bb6708f822a3bdb7afd30168d2cc3ed0e4.tar.zst
yuzu-711190bb6708f822a3bdb7afd30168d2cc3ed0e4.zip
Diffstat (limited to 'src/video_core/memory_manager.cpp')
-rw-r--r--src/video_core/memory_manager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/memory_manager.cpp b/src/video_core/memory_manager.cpp
index 7b2cde7a7..b2f7e160a 100644
--- a/src/video_core/memory_manager.cpp
+++ b/src/video_core/memory_manager.cpp
@@ -111,7 +111,7 @@ GPUVAddr MemoryManager::PageTableOp(GPUVAddr gpu_addr, [[maybe_unused]] VAddr cp
[[maybe_unused]] const auto current_entry_type = GetEntry<false>(current_gpu_addr);
SetEntry<false>(current_gpu_addr, entry_type);
if (current_entry_type != entry_type) {
- rasterizer->ModifyGPUMemory(unique_identifier, gpu_addr, page_size);
+ rasterizer->ModifyGPUMemory(unique_identifier, current_gpu_addr, page_size);
}
if constexpr (entry_type == EntryType::Mapped) {
const VAddr current_cpu_addr = cpu_addr + offset;
@@ -134,7 +134,7 @@ GPUVAddr MemoryManager::BigPageTableOp(GPUVAddr gpu_addr, [[maybe_unused]] VAddr
[[maybe_unused]] const auto current_entry_type = GetEntry<true>(current_gpu_addr);
SetEntry<true>(current_gpu_addr, entry_type);
if (current_entry_type != entry_type) {
- rasterizer->ModifyGPUMemory(unique_identifier, gpu_addr, big_page_size);
+ rasterizer->ModifyGPUMemory(unique_identifier, current_gpu_addr, big_page_size);
}
if constexpr (entry_type == EntryType::Mapped) {
const VAddr current_cpu_addr = cpu_addr + offset;