summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-05-19 02:51:54 +0200
committerFernandoS27 <fsahmkow27@gmail.com>2019-05-19 16:48:31 +0200
commit9e98100c9493f5a04de45002e8b4b1cd07b2b685 (patch)
tree20cd15c22ad9d0cb545f375dac1fc2ed5d9f03a1 /src
parentMerge pull request #2457 from lioncash/about (diff)
downloadyuzu-9e98100c9493f5a04de45002e8b4b1cd07b2b685.tar
yuzu-9e98100c9493f5a04de45002e8b4b1cd07b2b685.tar.gz
yuzu-9e98100c9493f5a04de45002e8b4b1cd07b2b685.tar.bz2
yuzu-9e98100c9493f5a04de45002e8b4b1cd07b2b685.tar.lz
yuzu-9e98100c9493f5a04de45002e8b4b1cd07b2b685.tar.xz
yuzu-9e98100c9493f5a04de45002e8b4b1cd07b2b685.tar.zst
yuzu-9e98100c9493f5a04de45002e8b4b1cd07b2b685.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/dma_pusher.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/dma_pusher.cpp b/src/video_core/dma_pusher.cpp
index 036e66f05..3175579cc 100644
--- a/src/video_core/dma_pusher.cpp
+++ b/src/video_core/dma_pusher.cpp
@@ -40,6 +40,13 @@ bool DmaPusher::Step() {
}
const CommandList& command_list{dma_pushbuffer.front()};
+ ASSERT_OR_EXECUTE(!command_list.empty(), {
+ // Somehow the command_list is empty, in order to avoid a crash
+ // We ignore it and assume its size is 0.
+ dma_pushbuffer.pop();
+ dma_pushbuffer_subindex = 0;
+ return true;
+ });
const CommandListHeader command_list_header{command_list[dma_pushbuffer_subindex++]};
GPUVAddr dma_get = command_list_header.addr;
GPUVAddr dma_put = dma_get + command_list_header.size * sizeof(u32);