diff options
author | bunnei <bunneidev@gmail.com> | 2019-03-21 03:28:35 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2019-03-21 03:36:03 +0100 |
commit | 72837e4b3d312ac6d7e5114c7b6e370006d46921 (patch) | |
tree | a696e00609764169e4cb6e1bbceea6ea5fb5cb2e /src/video_core/memory_manager.h | |
parent | memory: Check that core is powered on before attempting to use GPU. (diff) | |
download | yuzu-72837e4b3d312ac6d7e5114c7b6e370006d46921.tar yuzu-72837e4b3d312ac6d7e5114c7b6e370006d46921.tar.gz yuzu-72837e4b3d312ac6d7e5114c7b6e370006d46921.tar.bz2 yuzu-72837e4b3d312ac6d7e5114c7b6e370006d46921.tar.lz yuzu-72837e4b3d312ac6d7e5114c7b6e370006d46921.tar.xz yuzu-72837e4b3d312ac6d7e5114c7b6e370006d46921.tar.zst yuzu-72837e4b3d312ac6d7e5114c7b6e370006d46921.zip |
Diffstat (limited to 'src/video_core/memory_manager.h')
-rw-r--r-- | src/video_core/memory_manager.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/video_core/memory_manager.h b/src/video_core/memory_manager.h index 76fa3d916..60ba6b858 100644 --- a/src/video_core/memory_manager.h +++ b/src/video_core/memory_manager.h @@ -47,8 +47,8 @@ public: GPUVAddr AllocateSpace(u64 size, u64 align); GPUVAddr AllocateSpace(GPUVAddr addr, u64 size, u64 align); - GPUVAddr MapBufferEx(GPUVAddr cpu_addr, u64 size); - GPUVAddr MapBufferEx(GPUVAddr cpu_addr, GPUVAddr addr, u64 size); + 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); @@ -96,8 +96,8 @@ private: /// Converts a VMAHandle to a mutable VMAIter. VMAIter StripIterConstness(const VMAHandle& iter); - /// Unmaps the given VMA. - VMAIter Unmap(VMAIter vma); + /// Marks as the specfied VMA as allocated. + VMAIter Allocate(VMAIter vma); /** * Carves a VMA of a specific size at the specified address by splitting Free VMAs while doing @@ -135,11 +135,11 @@ private: static constexpr u64 page_mask{page_size - 1}; /// Address space in bits, this is fairly arbitrary but sufficiently large. - static constexpr u32 address_space_width = 39; + static constexpr u32 address_space_width{39}; /// Start address for mapping, this is fairly arbitrary but must be non-zero. - static constexpr GPUVAddr address_space_base = 0x100000; + static constexpr GPUVAddr address_space_base{0x100000}; /// End of address space, based on address space in bits. - static constexpr GPUVAddr address_space_end = 1ULL << address_space_width; + static constexpr GPUVAddr address_space_end{1ULL << address_space_width}; Common::PageTable page_table{page_bits}; VMAMap vma_map; |