summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Hexagon122019-05-19 16:27:15 +0100
committerGravatar GitHub2019-05-19 16:27:15 +0100
commitb94b08fa6fa385aaf2d869f6d1dfc2033ceb0ba7 (patch)
tree48f5ebec018b821deeb49765dae91b06c9642545 /src
parentMerge pull request #2452 from FernandoS27/raster-cache-fix (diff)
parentDma_pusher: ASSERT on empty command_list (diff)
downloadyuzu-b94b08fa6fa385aaf2d869f6d1dfc2033ceb0ba7.tar.gz
yuzu-b94b08fa6fa385aaf2d869f6d1dfc2033ceb0ba7.tar.xz
yuzu-b94b08fa6fa385aaf2d869f6d1dfc2033ceb0ba7.zip
Merge pull request #2491 from FernandoS27/dma-fix
Dma_pusher: ASSERT on empty command_list
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() {
40 } 40 }
41 41
42 const CommandList& command_list{dma_pushbuffer.front()}; 42 const CommandList& command_list{dma_pushbuffer.front()};
43 ASSERT_OR_EXECUTE(!command_list.empty(), {
44 // Somehow the command_list is empty, in order to avoid a crash
45 // We ignore it and assume its size is 0.
46 dma_pushbuffer.pop();
47 dma_pushbuffer_subindex = 0;
48 return true;
49 });
43 const CommandListHeader command_list_header{command_list[dma_pushbuffer_subindex++]}; 50 const CommandListHeader command_list_header{command_list[dma_pushbuffer_subindex++]};
44 GPUVAddr dma_get = command_list_header.addr; 51 GPUVAddr dma_get = command_list_header.addr;
45 GPUVAddr dma_put = dma_get + command_list_header.size * sizeof(u32); 52 GPUVAddr dma_put = dma_get + command_list_header.size * sizeof(u32);