From 90db743c56c0ab776917f7fb7d2c7f01a12cd502 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Wed, 31 Aug 2022 15:14:59 +0100 Subject: [PATCH] Source AsGpu GMMU page sizes from GMMU class --- .../cpp/skyline/services/nvdrv/devices/nvhost/as_gpu.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/cpp/skyline/services/nvdrv/devices/nvhost/as_gpu.h b/app/src/main/cpp/skyline/services/nvdrv/devices/nvhost/as_gpu.h index a4abb45c..c6c05e9a 100644 --- a/app/src/main/cpp/skyline/services/nvdrv/devices/nvhost/as_gpu.h +++ b/app/src/main/cpp/skyline/services/nvdrv/devices/nvhost/as_gpu.h @@ -44,13 +44,13 @@ namespace skyline::service::nvdrv::device::nvhost { std::mutex mutex; //!< Locks all AS operations struct VM { - static constexpr u32 PageSize{0x1000}; - static constexpr u32 PageSizeBits{std::countr_zero(PageSize)}; + static constexpr u32 PageSize{soc::gm20b::GmmuSmallPageSize}; + static constexpr u32 PageSizeBits{soc::gm20b::GmmuSmallPageSizeBits}; static constexpr u32 SupportedBigPageSizes{0x30000}; - static constexpr u32 DefaultBigPageSize{0x20000}; + static constexpr u32 DefaultBigPageSize{soc::gm20b::GmmuMinBigPageSize}; u32 bigPageSize{DefaultBigPageSize}; - u32 bigPageSizeBits{std::countr_zero(DefaultBigPageSize)}; + u32 bigPageSizeBits{soc::gm20b::GmmuMinBigPageSizeBits}; static constexpr u32 VaStartShift{10}; static constexpr u64 DefaultVaSplit{1ULL << 34};