diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-06-30 02:33:04 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-10-06 21:00:54 +0200 |
commit | fa342cae227666c861806b9bf63e4286aff1e4d7 (patch) | |
tree | db567b3031a00dda907fccb5fd3d46744a4bb9b8 /src/core/hle/service/nvdrv/devices | |
parent | general: Format licenses as per SPDX guidelines (diff) | |
download | yuzu-fa342cae227666c861806b9bf63e4286aff1e4d7.tar yuzu-fa342cae227666c861806b9bf63e4286aff1e4d7.tar.gz yuzu-fa342cae227666c861806b9bf63e4286aff1e4d7.tar.bz2 yuzu-fa342cae227666c861806b9bf63e4286aff1e4d7.tar.lz yuzu-fa342cae227666c861806b9bf63e4286aff1e4d7.tar.xz yuzu-fa342cae227666c861806b9bf63e4286aff1e4d7.tar.zst yuzu-fa342cae227666c861806b9bf63e4286aff1e4d7.zip |
Diffstat (limited to 'src/core/hle/service/nvdrv/devices')
-rw-r--r-- | src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp index b48f7fcaf..7a95f5305 100644 --- a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp +++ b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp @@ -472,16 +472,16 @@ void nvhost_as_gpu::GetVARegionsImpl(IoctlGetVaRegions& params) { params.regions = std::array<VaRegion, 2>{ VaRegion{ - .offset = vm.small_page_allocator->vaStart << VM::PAGE_SIZE_BITS, + .offset = vm.small_page_allocator->GetVAStart() << VM::PAGE_SIZE_BITS, .page_size = VM::YUZU_PAGESIZE, ._pad0_{}, - .pages = vm.small_page_allocator->vaLimit - vm.small_page_allocator->vaStart, + .pages = vm.small_page_allocator->GetVALimit() - vm.small_page_allocator->GetVAStart(), }, VaRegion{ - .offset = vm.big_page_allocator->vaStart << vm.big_page_size_bits, + .offset = vm.big_page_allocator->GetVAStart() << vm.big_page_size_bits, .page_size = vm.big_page_size, ._pad0_{}, - .pages = vm.big_page_allocator->vaLimit - vm.big_page_allocator->vaStart, + .pages = vm.big_page_allocator->GetVALimit() - vm.big_page_allocator->GetVAStart(), }, }; } |