summaryrefslogtreecommitdiff
path: root/src/core/memory.h
diff options
context:
space:
mode:
authorGravatar Lioncash2019-11-26 15:56:13 -0500
committerGravatar Lioncash2019-11-26 21:55:38 -0500
commit849581075a230ad0f5419bb5d5e1f9e48e6cfd8a (patch)
tree62985359329da0b65f65429ea5c403f622aea5e3 /src/core/memory.h
parentcore/memory: Migrate over ReadCString() to the Memory class (diff)
downloadyuzu-849581075a230ad0f5419bb5d5e1f9e48e6cfd8a.tar.gz
yuzu-849581075a230ad0f5419bb5d5e1f9e48e6cfd8a.tar.xz
yuzu-849581075a230ad0f5419bb5d5e1f9e48e6cfd8a.zip
core/memory: Migrate over RasterizerMarkRegionCached() to the Memory class
This is only used within the accelerated rasterizer in two places, so this is also a very trivial migration.
Diffstat (limited to 'src/core/memory.h')
-rw-r--r--src/core/memory.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/core/memory.h b/src/core/memory.h
index 47765c8a0..7cd348b49 100644
--- a/src/core/memory.h
+++ b/src/core/memory.h
@@ -169,6 +169,16 @@ public:
169 */ 169 */
170 std::string ReadCString(VAddr vaddr, std::size_t max_length); 170 std::string ReadCString(VAddr vaddr, std::size_t max_length);
171 171
172 /**
173 * Marks each page within the specified address range as cached or uncached.
174 *
175 * @param vaddr The virtual address indicating the start of the address range.
176 * @param size The size of the address range in bytes.
177 * @param cached Whether or not any pages within the address range should be
178 * marked as cached or uncached.
179 */
180 void RasterizerMarkRegionCached(VAddr vaddr, u64 size, bool cached);
181
172private: 182private:
173 struct Impl; 183 struct Impl;
174 std::unique_ptr<Impl> impl; 184 std::unique_ptr<Impl> impl;
@@ -199,9 +209,4 @@ void WriteBlock(VAddr dest_addr, const void* src_buffer, std::size_t size);
199void ZeroBlock(const Kernel::Process& process, VAddr dest_addr, std::size_t size); 209void ZeroBlock(const Kernel::Process& process, VAddr dest_addr, std::size_t size);
200void CopyBlock(VAddr dest_addr, VAddr src_addr, std::size_t size); 210void CopyBlock(VAddr dest_addr, VAddr src_addr, std::size_t size);
201 211
202/**
203 * Mark each page touching the region as cached.
204 */
205void RasterizerMarkRegionCached(VAddr vaddr, u64 size, bool cached);
206
207} // namespace Memory 212} // namespace Memory