diff options
author | Fernando Sahmkow <[email protected]> | 2023-12-31 20:55:15 +0100 |
---|---|---|
committer | Liam <[email protected]> | 2024-01-18 21:12:30 -0500 |
commit | 590d9b7e1d875e0403fb87cfcd4a8d52c50e2b81 (patch) | |
tree | b9eb43c5a4af892d5fda77fac241099c166c2380 /src/core/device_memory_manager.h | |
parent | b0bca0f8b04de630f9dec47cff14a640d40f65db (diff) | |
download | yuzu-mainline-590d9b7e1d875e0403fb87cfcd4a8d52c50e2b81.tar.gz yuzu-mainline-590d9b7e1d875e0403fb87cfcd4a8d52c50e2b81.zip |
Core: Clang format and other small issues.
Diffstat (limited to 'src/core/device_memory_manager.h')
-rw-r--r-- | src/core/device_memory_manager.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/device_memory_manager.h b/src/core/device_memory_manager.h index 0f6599cfe..f9cb13a7a 100644 --- a/src/core/device_memory_manager.h +++ b/src/core/device_memory_manager.h @@ -27,13 +27,13 @@ struct DeviceMemoryManagerAllocator; template <typename Traits> class DeviceMemoryManager { using DeviceInterface = typename Traits::DeviceInterface; - using DeviceMethods = Traits::DeviceMethods; + using DeviceMethods = typename Traits::DeviceMethods; public: DeviceMemoryManager(const DeviceMemory& device_memory); ~DeviceMemoryManager(); - void BindInterface(DeviceInterface* interface); + void BindInterface(DeviceInterface* device_inter); DAddr Allocate(size_t size); void AllocateFixed(DAddr start, size_t size); @@ -111,6 +111,7 @@ public: private: static constexpr size_t device_virtual_bits = Traits::device_virtual_bits; static constexpr size_t device_as_size = 1ULL << device_virtual_bits; + static constexpr size_t physical_min_bits = 32; static constexpr size_t physical_max_bits = 33; static constexpr size_t page_bits = 12; static constexpr size_t page_size = 1ULL << page_bits; @@ -143,7 +144,7 @@ private: std::unique_ptr<DeviceMemoryManagerAllocator<Traits>> impl; const uintptr_t physical_base; - DeviceInterface* interface; + DeviceInterface* device_inter; Common::VirtualBuffer<u32> compressed_physical_ptr; Common::VirtualBuffer<u32> compressed_device_addr; Common::VirtualBuffer<u32> continuity_tracker; |