summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-05-10 00:59:47 +0200
committerLioncash <mathew1800@gmail.com>2019-05-10 00:59:49 +0200
commit5235b053b46769fd808974ef409e86df992fd051 (patch)
tree731c478d7235cbaf049134a78ad619500ca67b29 /src/video_core
parentMerge pull request #2437 from lioncash/audctl (diff)
downloadyuzu-5235b053b46769fd808974ef409e86df992fd051.tar
yuzu-5235b053b46769fd808974ef409e86df992fd051.tar.gz
yuzu-5235b053b46769fd808974ef409e86df992fd051.tar.bz2
yuzu-5235b053b46769fd808974ef409e86df992fd051.tar.lz
yuzu-5235b053b46769fd808974ef409e86df992fd051.tar.xz
yuzu-5235b053b46769fd808974ef409e86df992fd051.tar.zst
yuzu-5235b053b46769fd808974ef409e86df992fd051.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/memory_manager.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/video_core/memory_manager.h b/src/video_core/memory_manager.h
index e4f0c4bd6..b9a683497 100644
--- a/src/video_core/memory_manager.h
+++ b/src/video_core/memory_manager.h
@@ -66,7 +66,7 @@ public:
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);
+ bool IsBlockContinous(GPUVAddr start, std::size_t size);
/**
* ReadBlock and WriteBlock are full read and write operations over virtual
@@ -74,9 +74,9 @@ public:
* in the Host Memory counterpart. Note: This functions cause Host GPU Memory
* Flushes and Invalidations, respectively to each operation.
*/
- void ReadBlock(GPUVAddr src_addr, void* dest_buffer, const std::size_t size) const;
- 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);
+ void ReadBlock(GPUVAddr src_addr, void* dest_buffer, std::size_t size) const;
+ void WriteBlock(GPUVAddr dest_addr, const void* src_buffer, std::size_t size);
+ void CopyBlock(GPUVAddr dest_addr, GPUVAddr src_addr, std::size_t size);
/**
* ReadBlockUnsafe and WriteBlockUnsafe are special versions of ReadBlock and
@@ -88,9 +88,9 @@ public:
* WriteBlockUnsafe instead of WriteBlock since it shouldn't invalidate the texture
* being flushed.
*/
- void ReadBlockUnsafe(GPUVAddr src_addr, void* dest_buffer, const std::size_t size) const;
- void WriteBlockUnsafe(GPUVAddr dest_addr, const void* src_buffer, const std::size_t size);
- void CopyBlockUnsafe(GPUVAddr dest_addr, GPUVAddr src_addr, const std::size_t size);
+ void ReadBlockUnsafe(GPUVAddr src_addr, void* dest_buffer, std::size_t size) const;
+ 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);
private:
using VMAMap = std::map<GPUVAddr, VirtualMemoryArea>;