summaryrefslogtreecommitdiffstats
path: root/src/video_core/dma_pusher.cpp
diff options
context:
space:
mode:
authorDavid Marcec <dmarcecguzman@gmail.com>2020-05-16 04:42:27 +0200
committerDavid Marcec <dmarcecguzman@gmail.com>2020-05-16 04:42:27 +0200
commit4b9504028d180bc10f2ffb376668ef78852b84c1 (patch)
tree433e987e31db39ed9eadbcd4b39afe464774239c /src/video_core/dma_pusher.cpp
parentMerge pull request #3942 from ReinUsesLisp/flush-and-invalidate (diff)
downloadyuzu-4b9504028d180bc10f2ffb376668ef78852b84c1.tar
yuzu-4b9504028d180bc10f2ffb376668ef78852b84c1.tar.gz
yuzu-4b9504028d180bc10f2ffb376668ef78852b84c1.tar.bz2
yuzu-4b9504028d180bc10f2ffb376668ef78852b84c1.tar.lz
yuzu-4b9504028d180bc10f2ffb376668ef78852b84c1.tar.xz
yuzu-4b9504028d180bc10f2ffb376668ef78852b84c1.tar.zst
yuzu-4b9504028d180bc10f2ffb376668ef78852b84c1.zip
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() {
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);
- bool non_main = command_list_header.is_non_main;
+ const GPUVAddr dma_get = command_list_header.addr;
if (dma_pushbuffer_subindex >= command_list.size()) {
// We've gone through the current list, remove it from the queue
@@ -133,11 +131,6 @@ bool DmaPusher::Step() {
index++;
}
- if (!non_main) {
- // TODO (degasus): This is dead code, as dma_mget is never read.
- dma_mget = dma_put;
- }
-
return true;
}