aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/engines/maxwell_dma.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-04-27 00:18:46 -0400
committerGitHub <noreply@github.com>2020-04-27 00:18:46 -0400
commit6c7d8073be9ab0ce92d346742989800895beeffe (patch)
tree298da9383d7f883102643f0ab146dda72d9f5358 /src/video_core/engines/maxwell_dma.cpp
parent378aed07e988f5a3c0f66b38edc22732d8b91eb6 (diff)
parent5c9feaebb6bfa34bb275ffa59ca823003de20422 (diff)
Merge pull request #3742 from FernandoS27/command-list
Optimize GPU Command Lists and Introduce Fast GPU Time Option
Diffstat (limited to 'src/video_core/engines/maxwell_dma.cpp')
-rw-r--r--src/video_core/engines/maxwell_dma.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/engines/maxwell_dma.cpp b/src/video_core/engines/maxwell_dma.cpp
index 3bfed6ab8..6630005b0 100644
--- a/src/video_core/engines/maxwell_dma.cpp
+++ b/src/video_core/engines/maxwell_dma.cpp
@@ -36,6 +36,13 @@ void MaxwellDMA::CallMethod(const GPU::MethodCall& method_call) {
#undef MAXWELLDMA_REG_INDEX
}
+void MaxwellDMA::CallMultiMethod(u32 method, const u32* base_start, u32 amount,
+ u32 methods_pending) {
+ for (std::size_t i = 0; i < amount; i++) {
+ CallMethod({method, base_start[i], 0, methods_pending - static_cast<u32>(i)});
+ }
+}
+
void MaxwellDMA::HandleCopy() {
LOG_TRACE(HW_GPU, "Requested a DMA copy");