diff --git a/app/src/main/cpp/skyline/services/nvdrv/devices/nvhost/gpu_channel.cpp b/app/src/main/cpp/skyline/services/nvdrv/devices/nvhost/gpu_channel.cpp index c0f91e11..3174c358 100644 --- a/app/src/main/cpp/skyline/services/nvdrv/devices/nvhost/gpu_channel.cpp +++ b/app/src/main/cpp/skyline/services/nvdrv/devices/nvhost/gpu_channel.cpp @@ -186,7 +186,7 @@ namespace skyline::service::nvdrv::device::nvhost { pushBufferMemory.resize(pushBufferWords); // Allocate pages in the GPU AS - pushBufferAddr = static_cast(asAllocator->Allocate((static_cast(pushBufferWords) >> AsGpu::VM::PageSizeBits) + 1)) << AsGpu::VM::PageSizeBits; + pushBufferAddr = static_cast(asAllocator->Allocate((static_cast(pushBufferSize) >> AsGpu::VM::PageSizeBits) + 1)) << AsGpu::VM::PageSizeBits; if (!pushBufferAddr) throw exception("Failed to allocate channel pushbuffer!");