diff options
| author | Lioncash <mathew1800@gmail.com> | 2019-04-05 20:18:27 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2019-04-05 20:18:29 -0400 |
| commit | 9dec087fca5944b6e4ee5f0f76c0716a93a9fe4d (patch) | |
| tree | 13001b2f2e22d963ab0043daf17d6220cc59ad75 /src/video_core/memory_manager.h | |
| parent | 66be5150d6d201e3f8ca6e5e09968f052df4beb1 (diff) | |
video_core/memory_manager: Make GpuToCpuAddress() a const member function
This doesn't modify any internal state, so it can be made a const member
function to allow its use in const contexts.
Diffstat (limited to 'src/video_core/memory_manager.h')
| -rw-r--r-- | src/video_core/memory_manager.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/memory_manager.h b/src/video_core/memory_manager.h index 34744bb27..c3b4d7ae7 100644 --- a/src/video_core/memory_manager.h +++ b/src/video_core/memory_manager.h @@ -50,7 +50,7 @@ public: GPUVAddr MapBufferEx(VAddr cpu_addr, u64 size); GPUVAddr MapBufferEx(VAddr cpu_addr, GPUVAddr addr, u64 size); GPUVAddr UnmapBuffer(GPUVAddr addr, u64 size); - std::optional<VAddr> GpuToCpuAddress(GPUVAddr addr); + std::optional<VAddr> GpuToCpuAddress(GPUVAddr addr) const; template <typename T> T Read(GPUVAddr addr); |
