summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-12-15 06:35:33 +0100
committerGitHub <noreply@github.com>2018-12-15 06:35:33 +0100
commit84823a3036d7bedfb4c4820e7019fb7daa9b4e4b (patch)
treef24b130f1fa06a3953ff5522a5c168ef2ac32549
parentMerge pull request #1901 from jschmer/ServiceLeak (diff)
parentnvhost_gpu: Skip empty GPU command lists. (diff)
downloadyuzu-84823a3036d7bedfb4c4820e7019fb7daa9b4e4b.tar
yuzu-84823a3036d7bedfb4c4820e7019fb7daa9b4e4b.tar.gz
yuzu-84823a3036d7bedfb4c4820e7019fb7daa9b4e4b.tar.bz2
yuzu-84823a3036d7bedfb4c4820e7019fb7daa9b4e4b.tar.lz
yuzu-84823a3036d7bedfb4c4820e7019fb7daa9b4e4b.tar.xz
yuzu-84823a3036d7bedfb4c4820e7019fb7daa9b4e4b.tar.zst
yuzu-84823a3036d7bedfb4c4820e7019fb7daa9b4e4b.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();