mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-14 13:02:49 +00:00
nvhost_gpu: Skip empty GPU command lists.
This commit is contained in:
parent
b88430c299
commit
040d84d816
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue