summaryrefslogtreecommitdiff
path: root/src/video_core/dma_pusher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/dma_pusher.cpp')
-rw-r--r--src/video_core/dma_pusher.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/video_core/dma_pusher.cpp b/src/video_core/dma_pusher.cpp
index bdc023d54..f2f96ac33 100644
--- a/src/video_core/dma_pusher.cpp
+++ b/src/video_core/dma_pusher.cpp
@@ -54,9 +54,7 @@ bool DmaPusher::Step() {
54 return true; 54 return true;
55 }); 55 });
56 const CommandListHeader command_list_header{command_list[dma_pushbuffer_subindex++]}; 56 const CommandListHeader command_list_header{command_list[dma_pushbuffer_subindex++]};
57 GPUVAddr dma_get = command_list_header.addr; 57 const GPUVAddr dma_get = command_list_header.addr;
58 GPUVAddr dma_put = dma_get + command_list_header.size * sizeof(u32);
59 bool non_main = command_list_header.is_non_main;
60 58
61 if (dma_pushbuffer_subindex >= command_list.size()) { 59 if (dma_pushbuffer_subindex >= command_list.size()) {
62 // We've gone through the current list, remove it from the queue 60 // We've gone through the current list, remove it from the queue
@@ -133,11 +131,6 @@ bool DmaPusher::Step() {
133 index++; 131 index++;
134 } 132 }
135 133
136 if (!non_main) {
137 // TODO (degasus): This is dead code, as dma_mget is never read.
138 dma_mget = dma_put;
139 }
140
141 return true; 134 return true;
142} 135}
143 136