summaryrefslogtreecommitdiffstats
path: root/src/video_core/memory_manager.h
diff options
context:
space:
mode:
authorRodrigo Locatti <reinuseslisp@airmail.cc>2020-04-09 22:59:21 +0200
committerGitHub <noreply@github.com>2020-04-09 22:59:21 +0200
commit36f607217fa9172d2e1b76e327fdb03b0498ae4d (patch)
tree523309af11b2e7f47f3f6060fad1d86e9d446206 /src/video_core/memory_manager.h
parentMerge pull request #3601 from ReinUsesLisp/some-shader-encodings (diff)
parentVkRasterizer: Eliminate Legacy code. (diff)
downloadyuzu-36f607217fa9172d2e1b76e327fdb03b0498ae4d.tar
yuzu-36f607217fa9172d2e1b76e327fdb03b0498ae4d.tar.gz
yuzu-36f607217fa9172d2e1b76e327fdb03b0498ae4d.tar.bz2
yuzu-36f607217fa9172d2e1b76e327fdb03b0498ae4d.tar.lz
yuzu-36f607217fa9172d2e1b76e327fdb03b0498ae4d.tar.xz
yuzu-36f607217fa9172d2e1b76e327fdb03b0498ae4d.tar.zst
yuzu-36f607217fa9172d2e1b76e327fdb03b0498ae4d.zip
Diffstat (limited to 'src/video_core/memory_manager.h')
-rw-r--r--src/video_core/memory_manager.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/memory_manager.h b/src/video_core/memory_manager.h
index 073bdb491..0d9468535 100644
--- a/src/video_core/memory_manager.h
+++ b/src/video_core/memory_manager.h
@@ -97,6 +97,11 @@ public:
void WriteBlockUnsafe(GPUVAddr dest_addr, const void* src_buffer, std::size_t size);
void CopyBlockUnsafe(GPUVAddr dest_addr, GPUVAddr src_addr, std::size_t size);
+ /**
+ * IsGranularRange checks if a gpu region can be simply read with a pointer
+ */
+ bool IsGranularRange(GPUVAddr gpu_addr, std::size_t size);
+
private:
using VMAMap = std::map<GPUVAddr, VirtualMemoryArea>;
using VMAHandle = VMAMap::const_iterator;