diff options
author | bunnei <bunneidev@gmail.com> | 2022-10-24 02:25:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-24 02:25:18 +0200 |
commit | 0313ee77936a696f9135a31ac0b644e6ffe49ae8 (patch) | |
tree | b9e4a934447468338c60add33375409341f5bc7d /src/video_core/memory_manager.cpp | |
parent | Merge pull request #9095 from FernandoS27/meat-good-vegetable-bad (diff) | |
parent | CMakeLists: Disable -Wbraced-scalar-init on Clang (diff) | |
download | yuzu-0313ee77936a696f9135a31ac0b644e6ffe49ae8.tar yuzu-0313ee77936a696f9135a31ac0b644e6ffe49ae8.tar.gz yuzu-0313ee77936a696f9135a31ac0b644e6ffe49ae8.tar.bz2 yuzu-0313ee77936a696f9135a31ac0b644e6ffe49ae8.tar.lz yuzu-0313ee77936a696f9135a31ac0b644e6ffe49ae8.tar.xz yuzu-0313ee77936a696f9135a31ac0b644e6ffe49ae8.tar.zst yuzu-0313ee77936a696f9135a31ac0b644e6ffe49ae8.zip |
Diffstat (limited to 'src/video_core/memory_manager.cpp')
-rw-r--r-- | src/video_core/memory_manager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/memory_manager.cpp b/src/video_core/memory_manager.cpp index d07b21bd6..384350dbd 100644 --- a/src/video_core/memory_manager.cpp +++ b/src/video_core/memory_manager.cpp @@ -133,7 +133,7 @@ inline void MemoryManager::SetBigPageContinous(size_t big_page_index, bool value template <MemoryManager::EntryType entry_type> GPUVAddr MemoryManager::PageTableOp(GPUVAddr gpu_addr, [[maybe_unused]] VAddr cpu_addr, size_t size, PTEKind kind) { - u64 remaining_size{size}; + [[maybe_unused]] u64 remaining_size{size}; if constexpr (entry_type == EntryType::Mapped) { page_table.ReserveRange(gpu_addr, size); } @@ -159,7 +159,7 @@ GPUVAddr MemoryManager::PageTableOp(GPUVAddr gpu_addr, [[maybe_unused]] VAddr cp template <MemoryManager::EntryType entry_type> GPUVAddr MemoryManager::BigPageTableOp(GPUVAddr gpu_addr, [[maybe_unused]] VAddr cpu_addr, size_t size, PTEKind kind) { - u64 remaining_size{size}; + [[maybe_unused]] u64 remaining_size{size}; for (u64 offset{}; offset < size; offset += big_page_size) { const GPUVAddr current_gpu_addr = gpu_addr + offset; [[maybe_unused]] const auto current_entry_type = GetEntry<true>(current_gpu_addr); |