diff options
| author | 2018-12-15 00:22:57 -0500 | |
|---|---|---|
| committer | 2018-12-15 00:33:22 -0500 | |
| commit | 040d84d816409e89a05c352ec85200e0f31cf4ad (patch) | |
| tree | 71da633344901d20a7db26075c820e0ee995c7b0 | |
| parent | Merge pull request #1902 from lioncash/audio (diff) | |
| download | yuzu-040d84d816409e89a05c352ec85200e0f31cf4ad.tar.gz yuzu-040d84d816409e89a05c352ec85200e0f31cf4ad.tar.xz yuzu-040d84d816409e89a05c352ec85200e0f31cf4ad.zip | |
nvhost_gpu: Skip empty GPU command lists.
Diffstat (limited to '')
| -rw-r--r-- | src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp | 4 |
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< | |||
| 137 | } | 137 | } |
| 138 | 138 | ||
| 139 | static void PushGPUEntries(Tegra::CommandList&& entries) { | 139 | static void PushGPUEntries(Tegra::CommandList&& entries) { |
| 140 | if (entries.empty()) { | ||
| 141 | return; | ||
| 142 | } | ||
| 143 | |||
| 140 | auto& dma_pusher{Core::System::GetInstance().GPU().DmaPusher()}; | 144 | auto& dma_pusher{Core::System::GetInstance().GPU().DmaPusher()}; |
| 141 | dma_pusher.Push(std::move(entries)); | 145 | dma_pusher.Push(std::move(entries)); |
| 142 | dma_pusher.DispatchCalls(); | 146 | dma_pusher.DispatchCalls(); |