VERY experimental Nintendo Switch 2 emulator
C++
DmaPusher: Remove dead code in step
David Marcec67d7c0f45e13
diff --git a/src/video_core/dma_pusher.cpp b/src/video_core/dma_pusher.cppindex bdc023d548..f2f96ac33a 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.hindex e8b714e941..efa90d1709 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 addressbool ib_enable{true}; ///< IB mode enabledstd::array<Tegra::Engines::EngineInterface*, max_subchannels> subchannels{};