summaryrefslogtreecommitdiff
path: root/src/core/memory.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2016-10-03 20:21:55 -0400
committerGravatar GitHub2016-10-03 20:21:55 -0400
commit49b10339bf87ce69dafee78eb3957fb6d51424d8 (patch)
treef9255901fc887d6b252028131d3d0d7ce285d469 /src/core/memory.cpp
parentMerge pull request #2083 from yuriks/opengl-scissor-cached-rect (diff)
parentgpu: DisplayTransfer: a less amazing algorithm for flip (diff)
downloadyuzu-49b10339bf87ce69dafee78eb3957fb6d51424d8.tar.gz
yuzu-49b10339bf87ce69dafee78eb3957fb6d51424d8.tar.xz
yuzu-49b10339bf87ce69dafee78eb3957fb6d51424d8.zip
Merge pull request #2103 from wwylele/gpu-reg-cleanup
GPU: DisplayTransfer & MemoryFill cleanup and param check
Diffstat (limited to 'src/core/memory.cpp')
-rw-r--r--src/core/memory.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/memory.cpp b/src/core/memory.cpp
index df029d655..64c388374 100644
--- a/src/core/memory.cpp
+++ b/src/core/memory.cpp
@@ -251,6 +251,9 @@ bool IsValidVirtualAddress(const VAddr vaddr) {
251 if (page_pointer) 251 if (page_pointer)
252 return true; 252 return true;
253 253
254 if (current_page_table->attributes[vaddr >> PAGE_BITS] == PageType::RasterizerCachedMemory)
255 return true;
256
254 if (current_page_table->attributes[vaddr >> PAGE_BITS] != PageType::Special) 257 if (current_page_table->attributes[vaddr >> PAGE_BITS] != PageType::Special)
255 return false; 258 return false;
256 259