summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2019-05-09 18:59:47 -0400
committerGravatar Lioncash2019-05-09 18:59:49 -0400
commit5235b053b46769fd808974ef409e86df992fd051 (patch)
tree731c478d7235cbaf049134a78ad619500ca67b29 /src
parentMerge pull request #2437 from lioncash/audctl (diff)
downloadyuzu-5235b053b46769fd808974ef409e86df992fd051.tar.gz
yuzu-5235b053b46769fd808974ef409e86df992fd051.tar.xz
yuzu-5235b053b46769fd808974ef409e86df992fd051.zip
video_core/memory_manager: Remove superfluous const from function declarations
These are able to be omitted from the declaration of functions, since they don't do anything at the type system level. The definitions of the functions can retain the use of const though, since they make the variables immutable in the implementation of the function where they're used.
Diffstat (limited to 'src')
-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:
66 const u8* GetPointer(GPUVAddr addr) const; 66 const u8* GetPointer(GPUVAddr addr) const;
67 67
68 // Returns true if the block is continous in host memory, false otherwise 68 // Returns true if the block is continous in host memory, false otherwise
69 bool IsBlockContinous(const GPUVAddr start, const std::size_t size); 69 bool IsBlockContinous(GPUVAddr start, std::size_t size);
70 70
71 /** 71 /**
72 * ReadBlock and WriteBlock are full read and write operations over virtual 72 * ReadBlock and WriteBlock are full read and write operations over virtual
@@ -74,9 +74,9 @@ public:
74 * in the Host Memory counterpart. Note: This functions cause Host GPU Memory 74 * in the Host Memory counterpart. Note: This functions cause Host GPU Memory
75 * Flushes and Invalidations, respectively to each operation. 75 * Flushes and Invalidations, respectively to each operation.
76 */ 76 */
77 void ReadBlock(GPUVAddr src_addr, void* dest_buffer, const std::size_t size) const; 77 void ReadBlock(GPUVAddr src_addr, void* dest_buffer, std::size_t size) const;
78 void WriteBlock(GPUVAddr dest_addr, const void* src_buffer, const std::size_t size); 78 void WriteBlock(GPUVAddr dest_addr, const void* src_buffer, std::size_t size);
79 void CopyBlock(GPUVAddr dest_addr, GPUVAddr src_addr, const std::size_t size); 79 void CopyBlock(GPUVAddr dest_addr, GPUVAddr src_addr, std::size_t size);
80 80
81 /** 81 /**
82 * ReadBlockUnsafe and WriteBlockUnsafe are special versions of ReadBlock and 82 * ReadBlockUnsafe and WriteBlockUnsafe are special versions of ReadBlock and
@@ -88,9 +88,9 @@ public:
88 * WriteBlockUnsafe instead of WriteBlock since it shouldn't invalidate the texture 88 * WriteBlockUnsafe instead of WriteBlock since it shouldn't invalidate the texture
89 * being flushed. 89 * being flushed.
90 */ 90 */
91 void ReadBlockUnsafe(GPUVAddr src_addr, void* dest_buffer, const std::size_t size) const; 91 void ReadBlockUnsafe(GPUVAddr src_addr, void* dest_buffer, std::size_t size) const;
92 void WriteBlockUnsafe(GPUVAddr dest_addr, const void* src_buffer, const std::size_t size); 92 void WriteBlockUnsafe(GPUVAddr dest_addr, const void* src_buffer, std::size_t size);
93 void CopyBlockUnsafe(GPUVAddr dest_addr, GPUVAddr src_addr, const std::size_t size); 93 void CopyBlockUnsafe(GPUVAddr dest_addr, GPUVAddr src_addr, std::size_t size);
94 94
95private: 95private:
96 using VMAMap = std::map<GPUVAddr, VirtualMemoryArea>; 96 using VMAMap = std::map<GPUVAddr, VirtualMemoryArea>;