summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-05-16 08:00:14 +0200
committerGitHub <noreply@github.com>2020-05-16 08:00:14 +0200
commit74d5c0ed2fe0b545cba59b97a235c1a06f02186f (patch)
tree433e987e31db39ed9eadbcd4b39afe464774239c
parentMerge pull request #3942 from ReinUsesLisp/flush-and-invalidate (diff)
parentDmaPusher: Remove dead code in step (diff)
downloadyuzu-74d5c0ed2fe0b545cba59b97a235c1a06f02186f.tar
yuzu-74d5c0ed2fe0b545cba59b97a235c1a06f02186f.tar.gz
yuzu-74d5c0ed2fe0b545cba59b97a235c1a06f02186f.tar.bz2
yuzu-74d5c0ed2fe0b545cba59b97a235c1a06f02186f.tar.lz
yuzu-74d5c0ed2fe0b545cba59b97a235c1a06f02186f.tar.xz
yuzu-74d5c0ed2fe0b545cba59b97a235c1a06f02186f.tar.zst
yuzu-74d5c0ed2fe0b545cba59b97a235c1a06f02186f.zip
-rw-r--r--src/video_core/dma_pusher.cpp9
-rw-r--r--src/video_core/dma_pusher.h1
2 files changed, 1 insertions, 9 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;
}
diff --git a/src/video_core/dma_pusher.h b/src/video_core/dma_pusher.h
index e8b714e94..efa90d170 100644
--- a/src/video_core/dma_pusher.h
+++ b/src/video_core/dma_pusher.h
@@ -102,7 +102,6 @@ private:
DmaState dma_state{};
bool dma_increment_once{};
- GPUVAddr dma_mget{}; ///< main pushbuffer last read address
bool ib_enable{true}; ///< IB mode enabled
std::array<Tegra::Engines::EngineInterface*, max_subchannels> subchannels{};