diff options
author | bunnei <bunneidev@gmail.com> | 2016-12-18 01:13:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-18 01:13:33 +0100 |
commit | 4798b1d04d048f97b7913e0ea4ae47d7be261e2a (patch) | |
tree | e3bf2de7e4a87f4684528dbe25aecd1977c18e4e /src/core | |
parent | Merge pull request #2345 from wwylele/no-zombie-thread (diff) | |
download | yuzu-4798b1d04d048f97b7913e0ea4ae47d7be261e2a.tar yuzu-4798b1d04d048f97b7913e0ea4ae47d7be261e2a.tar.gz yuzu-4798b1d04d048f97b7913e0ea4ae47d7be261e2a.tar.bz2 yuzu-4798b1d04d048f97b7913e0ea4ae47d7be261e2a.tar.lz yuzu-4798b1d04d048f97b7913e0ea4ae47d7be261e2a.tar.xz yuzu-4798b1d04d048f97b7913e0ea4ae47d7be261e2a.tar.zst yuzu-4798b1d04d048f97b7913e0ea4ae47d7be261e2a.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/memory.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/core/memory.cpp b/src/core/memory.cpp index d058dc844..65e4bba85 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp @@ -357,24 +357,14 @@ void RasterizerMarkRegionCached(PAddr start, u32 size, int count_delta) { } } -static void RoundToPages(PAddr& start, u32& size) { - PAddr start_rounded_down = start & ~PAGE_MASK; - PAddr end_rounded_up = ((start + size) + PAGE_MASK) & ~PAGE_MASK; - - start = start_rounded_down; - size = end_rounded_up - start_rounded_down; -} - void RasterizerFlushRegion(PAddr start, u32 size) { if (VideoCore::g_renderer != nullptr) { - RoundToPages(start, size); VideoCore::g_renderer->Rasterizer()->FlushRegion(start, size); } } void RasterizerFlushAndInvalidateRegion(PAddr start, u32 size) { if (VideoCore::g_renderer != nullptr) { - RoundToPages(start, size); VideoCore::g_renderer->Rasterizer()->FlushAndInvalidateRegion(start, size); } } |