nvhost_gpu: Skip empty GPU command lists.

merge-requests/60/head
bunnei 2018-12-15 00:22:57 +07:00
parent b88430c299
commit 040d84d816
1 changed files with 4 additions and 0 deletions

@ -137,6 +137,10 @@ u32 nvhost_gpu::AllocateObjectContext(const std::vector<u8>& input, std::vector<
}
static void PushGPUEntries(Tegra::CommandList&& entries) {
if (entries.empty()) {
return;
}
auto& dma_pusher{Core::System::GetInstance().GPU().DmaPusher()};
dma_pusher.Push(std::move(entries));
dma_pusher.DispatchCalls();