diff options
| author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-07-19 11:14:47 -0400 |
|---|---|---|
| committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-07-19 11:28:57 -0400 |
| commit | 024b5fe91ad89820f64011ef2d37c8b956c94386 (patch) | |
| tree | 7816cc9d561501784bb47915baf46455ad5da00d /src/core/hle/kernel/physical_memory.h | |
| parent | 0901c3375337c05ab41b435fb57b5bf7f1b2216e (diff) | |
Kernel: Address Feedback
Diffstat (limited to 'src/core/hle/kernel/physical_memory.h')
| -rw-r--r-- | src/core/hle/kernel/physical_memory.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/hle/kernel/physical_memory.h b/src/core/hle/kernel/physical_memory.h index dd49c75a2..090565310 100644 --- a/src/core/hle/kernel/physical_memory.h +++ b/src/core/hle/kernel/physical_memory.h @@ -8,6 +8,12 @@ namespace Kernel { +// This encapsulation serves 2 purposes: +// - First, to encapsulate host physical memory under a single type and set an +// standard for managing it. +// - Second to ensure all host backing memory used is aligned to 256 bytes due +// to strict alignment restrictions on GPU memory. + using PhysicalMemory = std::vector<u8, Common::AlignmentAllocator<u8, 256>>; -} +} // namespace Kernel |
