summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-12-15 06:22:57 +0100
committerbunnei <bunneidev@gmail.com>2018-12-15 06:33:22 +0100
commit040d84d816409e89a05c352ec85200e0f31cf4ad (patch)
tree71da633344901d20a7db26075c820e0ee995c7b0
parentMerge pull request #1902 from lioncash/audio (diff)
downloadyuzu-040d84d816409e89a05c352ec85200e0f31cf4ad.tar
yuzu-040d84d816409e89a05c352ec85200e0f31cf4ad.tar.gz
yuzu-040d84d816409e89a05c352ec85200e0f31cf4ad.tar.bz2
yuzu-040d84d816409e89a05c352ec85200e0f31cf4ad.tar.lz
yuzu-040d84d816409e89a05c352ec85200e0f31cf4ad.tar.xz
yuzu-040d84d816409e89a05c352ec85200e0f31cf4ad.tar.zst
yuzu-040d84d816409e89a05c352ec85200e0f31cf4ad.zip
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp b/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp
index 3bfce0110..0a650f36c 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp
@@ -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();