aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/engines/maxwell_compute.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-11-23 23:20:56 -0500
committerbunnei <bunneidev@gmail.com>2018-11-26 23:14:01 -0500
commitf8b215e3617c320bc7faf4f7ff4580eb87f65120 (patch)
tree65ba9fc6ff7609ea569ea1e3d05f91caa56ffa14 /src/video_core/engines/maxwell_compute.cpp
parent46c950fe09643035cbd51bc5518a1dd4cc5a5da3 (diff)
gpu: Rewrite GPU command list processing with DmaPusher class.
- More accurate impl., fixes Undertale (among other games).
Diffstat (limited to 'src/video_core/engines/maxwell_compute.cpp')
-rw-r--r--src/video_core/engines/maxwell_compute.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/engines/maxwell_compute.cpp b/src/video_core/engines/maxwell_compute.cpp
index 8b5f083519..656db6a61b 100644
--- a/src/video_core/engines/maxwell_compute.cpp
+++ b/src/video_core/engines/maxwell_compute.cpp
@@ -8,13 +8,13 @@
namespace Tegra::Engines {
-void MaxwellCompute::WriteReg(u32 method, u32 value) {
- ASSERT_MSG(method < Regs::NUM_REGS,
+void MaxwellCompute::CallMethod(const GPU::MethodCall& method_call) {
+ ASSERT_MSG(method_call.method < Regs::NUM_REGS,
"Invalid MaxwellCompute register, increase the size of the Regs structure");
- regs.reg_array[method] = value;
+ regs.reg_array[method_call.method] = method_call.argument;
- switch (method) {
+ switch (method_call.method) {
case MAXWELL_COMPUTE_REG_INDEX(compute): {
LOG_CRITICAL(HW_GPU, "Compute shaders are not implemented");
UNREACHABLE();