mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
Merge pull request #3944 from ogniK5377/dma_mget
DmaPusher: Remove dead code in step
This commit is contained in:
commit
74d5c0ed2f
2 changed files with 1 additions and 9 deletions
|
@ -54,9 +54,7 @@ bool DmaPusher::Step() {
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
const CommandListHeader command_list_header{command_list[dma_pushbuffer_subindex++]};
|
const CommandListHeader command_list_header{command_list[dma_pushbuffer_subindex++]};
|
||||||
GPUVAddr dma_get = command_list_header.addr;
|
const 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;
|
|
||||||
|
|
||||||
if (dma_pushbuffer_subindex >= command_list.size()) {
|
if (dma_pushbuffer_subindex >= command_list.size()) {
|
||||||
// We've gone through the current list, remove it from the queue
|
// We've gone through the current list, remove it from the queue
|
||||||
|
@ -133,11 +131,6 @@ bool DmaPusher::Step() {
|
||||||
index++;
|
index++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!non_main) {
|
|
||||||
// TODO (degasus): This is dead code, as dma_mget is never read.
|
|
||||||
dma_mget = dma_put;
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -102,7 +102,6 @@ private:
|
||||||
DmaState dma_state{};
|
DmaState dma_state{};
|
||||||
bool dma_increment_once{};
|
bool dma_increment_once{};
|
||||||
|
|
||||||
GPUVAddr dma_mget{}; ///< main pushbuffer last read address
|
|
||||||
bool ib_enable{true}; ///< IB mode enabled
|
bool ib_enable{true}; ///< IB mode enabled
|
||||||
|
|
||||||
std::array<Tegra::Engines::EngineInterface*, max_subchannels> subchannels{};
|
std::array<Tegra::Engines::EngineInterface*, max_subchannels> subchannels{};
|
||||||
|
|
Loading…
Reference in a new issue