diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-04-28 03:47:58 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-04-28 03:47:58 +0200 |
commit | 90e5694230c0b5a946f7cec6f8083476016a42be (patch) | |
tree | 2c34a1b6e99d790cf794a9db6f3ac9b1dca60a8a /src/video_core/engines/maxwell_dma.cpp | |
parent | Merge pull request #3785 from ogniK5377/set-buffer-count-unit (diff) | |
download | yuzu-90e5694230c0b5a946f7cec6f8083476016a42be.tar yuzu-90e5694230c0b5a946f7cec6f8083476016a42be.tar.gz yuzu-90e5694230c0b5a946f7cec6f8083476016a42be.tar.bz2 yuzu-90e5694230c0b5a946f7cec6f8083476016a42be.tar.lz yuzu-90e5694230c0b5a946f7cec6f8083476016a42be.tar.xz yuzu-90e5694230c0b5a946f7cec6f8083476016a42be.tar.zst yuzu-90e5694230c0b5a946f7cec6f8083476016a42be.zip |
Diffstat (limited to 'src/video_core/engines/maxwell_dma.cpp')
-rw-r--r-- | src/video_core/engines/maxwell_dma.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/video_core/engines/maxwell_dma.cpp b/src/video_core/engines/maxwell_dma.cpp index 6630005b0..22ca730bc 100644 --- a/src/video_core/engines/maxwell_dma.cpp +++ b/src/video_core/engines/maxwell_dma.cpp @@ -17,16 +17,16 @@ namespace Tegra::Engines { MaxwellDMA::MaxwellDMA(Core::System& system, MemoryManager& memory_manager) : system{system}, memory_manager{memory_manager} {} -void MaxwellDMA::CallMethod(const GPU::MethodCall& method_call) { - ASSERT_MSG(method_call.method < Regs::NUM_REGS, +void MaxwellDMA::CallMethod(u32 method, u32 method_argument, bool is_last_call) { + ASSERT_MSG(method < Regs::NUM_REGS, "Invalid MaxwellDMA register, increase the size of the Regs structure"); - regs.reg_array[method_call.method] = method_call.argument; + regs.reg_array[method] = method_argument; #define MAXWELLDMA_REG_INDEX(field_name) \ (offsetof(Tegra::Engines::MaxwellDMA::Regs, field_name) / sizeof(u32)) - switch (method_call.method) { + switch (method) { case MAXWELLDMA_REG_INDEX(exec): { HandleCopy(); break; @@ -39,7 +39,7 @@ void MaxwellDMA::CallMethod(const GPU::MethodCall& method_call) { 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)}); + CallMethod(method, base_start[i], methods_pending - static_cast<u32>(i) <= 1); } } |