summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/video_core/engines/maxwell_3d.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp
index d1edfe09a..ae6a4d5f1 100644
--- a/src/video_core/engines/maxwell_3d.cpp
+++ b/src/video_core/engines/maxwell_3d.cpp
@@ -4,6 +4,7 @@
4 4
5#include <cinttypes> 5#include <cinttypes>
6#include "common/assert.h" 6#include "common/assert.h"
7#include "video_core/debug_utils/debug_utils.h"
7#include "video_core/engines/maxwell_3d.h" 8#include "video_core/engines/maxwell_3d.h"
8#include "video_core/textures/decoders.h" 9#include "video_core/textures/decoders.h"
9#include "video_core/textures/texture.h" 10#include "video_core/textures/texture.h"
@@ -75,6 +76,10 @@ void Maxwell3D::WriteReg(u32 method, u32 value, u32 remaining_params) {
75 return; 76 return;
76 } 77 }
77 78
79 if (Tegra::g_debug_context) {
80 Tegra::g_debug_context->OnEvent(Tegra::DebugContext::Event::MaxwellCommandLoaded, nullptr);
81 }
82
78 regs.reg_array[method] = value; 83 regs.reg_array[method] = value;
79 84
80#define MAXWELL3D_REG_INDEX(field_name) (offsetof(Regs, field_name) / sizeof(u32)) 85#define MAXWELL3D_REG_INDEX(field_name) (offsetof(Regs, field_name) / sizeof(u32))
@@ -140,6 +145,11 @@ void Maxwell3D::WriteReg(u32 method, u32 value, u32 remaining_params) {
140 } 145 }
141 146
142#undef MAXWELL3D_REG_INDEX 147#undef MAXWELL3D_REG_INDEX
148
149 if (Tegra::g_debug_context) {
150 Tegra::g_debug_context->OnEvent(Tegra::DebugContext::Event::MaxwellCommandProcessed,
151 nullptr);
152 }
143} 153}
144 154
145void Maxwell3D::ProcessQueryGet() { 155void Maxwell3D::ProcessQueryGet() {