diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-04-16 21:45:24 +0200 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-04-17 00:49:35 +0200 |
commit | d0082de82a094c98a5ef8907583415daef91604a (patch) | |
tree | f9e634136a921a76d81a34457bdc9633177a9ea3 /src/video_core/memory_manager.h | |
parent | Use ReadBlockUnsafe for fetyching DMA CommandLists (diff) | |
download | yuzu-d0082de82a094c98a5ef8907583415daef91604a.tar yuzu-d0082de82a094c98a5ef8907583415daef91604a.tar.gz yuzu-d0082de82a094c98a5ef8907583415daef91604a.tar.bz2 yuzu-d0082de82a094c98a5ef8907583415daef91604a.tar.lz yuzu-d0082de82a094c98a5ef8907583415daef91604a.tar.xz yuzu-d0082de82a094c98a5ef8907583415daef91604a.tar.zst yuzu-d0082de82a094c98a5ef8907583415daef91604a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/memory_manager.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/video_core/memory_manager.h b/src/video_core/memory_manager.h index 017b051cf..e4f0c4bd6 100644 --- a/src/video_core/memory_manager.h +++ b/src/video_core/memory_manager.h @@ -65,7 +65,10 @@ public: u8* GetPointer(GPUVAddr addr); const u8* GetPointer(GPUVAddr addr) const; - /* + // Returns true if the block is continous in host memory, false otherwise + bool IsBlockContinous(const GPUVAddr start, const std::size_t size); + + /** * ReadBlock and WriteBlock are full read and write operations over virtual * GPU Memory. It's important to use these when GPU memory may not be continous * in the Host Memory counterpart. Note: This functions cause Host GPU Memory @@ -75,7 +78,7 @@ public: void WriteBlock(GPUVAddr dest_addr, const void* src_buffer, const std::size_t size); void CopyBlock(GPUVAddr dest_addr, GPUVAddr src_addr, const std::size_t size); - /* + /** * ReadBlockUnsafe and WriteBlockUnsafe are special versions of ReadBlock and * WriteBlock respectively. In this versions, no flushing or invalidation is actually * done and their performance is similar to a memcpy. This functions can be used |