summaryrefslogtreecommitdiffstats
path: root/src/core/memory.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2016-12-18 22:11:26 +0100
committerGitHub <noreply@github.com>2016-12-18 22:11:26 +0100
commit4c45611a2b0535bcc64a2583ffc763afcddaaf2a (patch)
treec044c9a2aa10f6e0e0ffd2e617bc3b65c7a39eaa /src/core/memory.cpp
parentMerge pull request #2353 from CaptV0rt3x/code-cleanup (diff)
parentRevert "Memory: Always flush whole pages from surface cache" (diff)
downloadyuzu-4c45611a2b0535bcc64a2583ffc763afcddaaf2a.tar
yuzu-4c45611a2b0535bcc64a2583ffc763afcddaaf2a.tar.gz
yuzu-4c45611a2b0535bcc64a2583ffc763afcddaaf2a.tar.bz2
yuzu-4c45611a2b0535bcc64a2583ffc763afcddaaf2a.tar.lz
yuzu-4c45611a2b0535bcc64a2583ffc763afcddaaf2a.tar.xz
yuzu-4c45611a2b0535bcc64a2583ffc763afcddaaf2a.tar.zst
yuzu-4c45611a2b0535bcc64a2583ffc763afcddaaf2a.zip
Diffstat (limited to 'src/core/memory.cpp')
-rw-r--r--src/core/memory.cpp10
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);
}
}