diff options
author | gidoly <66776795+gidoly@users.noreply.github.com> | 2022-12-29 09:39:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-29 09:39:42 +0100 |
commit | 10eaf31af373a01c989b4df2d13c2fa770857b3a (patch) | |
tree | e184c5bfa13ee0efa07c8ad1afecb339035bb671 /src/core/hle/kernel/k_memory_manager.cpp | |
parent | Merge pull request #9423 from vonchenplus/vulkan_quad_strip (diff) | |
download | yuzu-10eaf31af373a01c989b4df2d13c2fa770857b3a.tar yuzu-10eaf31af373a01c989b4df2d13c2fa770857b3a.tar.gz yuzu-10eaf31af373a01c989b4df2d13c2fa770857b3a.tar.bz2 yuzu-10eaf31af373a01c989b4df2d13c2fa770857b3a.tar.lz yuzu-10eaf31af373a01c989b4df2d13c2fa770857b3a.tar.xz yuzu-10eaf31af373a01c989b4df2d13c2fa770857b3a.tar.zst yuzu-10eaf31af373a01c989b4df2d13c2fa770857b3a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/k_memory_manager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/kernel/k_memory_manager.cpp b/src/core/hle/kernel/k_memory_manager.cpp index cd6ea388e..bd33571da 100644 --- a/src/core/hle/kernel/k_memory_manager.cpp +++ b/src/core/hle/kernel/k_memory_manager.cpp @@ -223,7 +223,7 @@ Result KMemoryManager::AllocatePageGroupImpl(KPageGroup* out, size_t num_pages, // Ensure that we don't leave anything un-freed. ON_RESULT_FAILURE { - for (const auto& it : *out) { + for (const auto& it : out->Nodes()) { auto& manager = this->GetManager(it.GetAddress()); const size_t node_num_pages = std::min<u64>( it.GetNumPages(), (manager.GetEndAddress() - it.GetAddress()) / PageSize); @@ -285,7 +285,7 @@ Result KMemoryManager::AllocateAndOpen(KPageGroup* out, size_t num_pages, u32 op m_has_optimized_process[static_cast<size_t>(pool)], true)); // Open the first reference to the pages. - for (const auto& block : *out) { + for (const auto& block : out->Nodes()) { PAddr cur_address = block.GetAddress(); size_t remaining_pages = block.GetNumPages(); while (remaining_pages > 0) { @@ -335,7 +335,7 @@ Result KMemoryManager::AllocateForProcess(KPageGroup* out, size_t num_pages, u32 // Perform optimized memory tracking, if we should. if (optimized) { // Iterate over the allocated blocks. - for (const auto& block : *out) { + for (const auto& block : out->Nodes()) { // Get the block extents. const PAddr block_address = block.GetAddress(); const size_t block_pages = block.GetNumPages(); @@ -391,7 +391,7 @@ Result KMemoryManager::AllocateForProcess(KPageGroup* out, size_t num_pages, u32 } } else { // Set all the allocated memory. - for (const auto& block : *out) { + for (const auto& block : out->Nodes()) { std::memset(m_system.DeviceMemory().GetPointer<void>(block.GetAddress()), fill_pattern, block.GetSize()); } |