summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2022-06-30 02:33:04 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2022-10-06 21:00:54 +0200
commitfa342cae227666c861806b9bf63e4286aff1e4d7 (patch)
treedb567b3031a00dda907fccb5fd3d46744a4bb9b8 /src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp
parentgeneral: Format licenses as per SPDX guidelines (diff)
downloadyuzu-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/nvhost_as_gpu.cpp')
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp8
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(),
},
};
}