summaryrefslogtreecommitdiffstats
path: root/src/core/memory.cpp
diff options
context:
space:
mode:
authorwwylele <wwylele@gmail.com>2016-09-27 13:50:50 +0200
committerwwylele <wwylele@gmail.com>2016-09-29 04:01:34 +0200
commit3f87d70f0edf823b47b0f73d9d99c360a6fa0a19 (patch)
tree0e0c183b4bc96d703aa09fac68b49408df9b5884 /src/core/memory.cpp
parentgpu: move MemoryFill, TextureCopy and DisplayTransfer into functions (diff)
downloadyuzu-3f87d70f0edf823b47b0f73d9d99c360a6fa0a19.tar
yuzu-3f87d70f0edf823b47b0f73d9d99c360a6fa0a19.tar.gz
yuzu-3f87d70f0edf823b47b0f73d9d99c360a6fa0a19.tar.bz2
yuzu-3f87d70f0edf823b47b0f73d9d99c360a6fa0a19.tar.lz
yuzu-3f87d70f0edf823b47b0f73d9d99c360a6fa0a19.tar.xz
yuzu-3f87d70f0edf823b47b0f73d9d99c360a6fa0a19.tar.zst
yuzu-3f87d70f0edf823b47b0f73d9d99c360a6fa0a19.zip
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) {
if (page_pointer)
return true;
+ if (current_page_table->attributes[vaddr >> PAGE_BITS] == PageType::RasterizerCachedMemory)
+ return true;
+
if (current_page_table->attributes[vaddr >> PAGE_BITS] != PageType::Special)
return false;