2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Merge pull request #1905 from bunnei/ignore-empty-gpu-lists

nvhost_gpu: Skip empty GPU command lists.
This commit is contained in:
bunnei 2018-12-15 00:35:33 -05:00 committed by GitHub
commit 84823a3036
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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