summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-03-22 21:25:17 +0100
committerSubv <subv2112@gmail.com>2018-03-24 17:31:50 +0100
commit1ad97c75a0fe94000b0f54ff43ca5d29d8a9edc6 (patch)
treec2679c03eaf64066273cb9840b3eb42db8473e39 /src/video_core
parentFrontend: Ported the GPU breakpoints and surface viewer widgets from citra. (diff)
downloadyuzu-1ad97c75a0fe94000b0f54ff43ca5d29d8a9edc6.tar
yuzu-1ad97c75a0fe94000b0f54ff43ca5d29d8a9edc6.tar.gz
yuzu-1ad97c75a0fe94000b0f54ff43ca5d29d8a9edc6.tar.bz2
yuzu-1ad97c75a0fe94000b0f54ff43ca5d29d8a9edc6.tar.lz
yuzu-1ad97c75a0fe94000b0f54ff43ca5d29d8a9edc6.tar.xz
yuzu-1ad97c75a0fe94000b0f54ff43ca5d29d8a9edc6.tar.zst
yuzu-1ad97c75a0fe94000b0f54ff43ca5d29d8a9edc6.zip
Diffstat (limited to 'src/video_core')
-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 @@
#include <cinttypes>
#include "common/assert.h"
+#include "video_core/debug_utils/debug_utils.h"
#include "video_core/engines/maxwell_3d.h"
#include "video_core/textures/decoders.h"
#include "video_core/textures/texture.h"
@@ -75,6 +76,10 @@ void Maxwell3D::WriteReg(u32 method, u32 value, u32 remaining_params) {
return;
}
+ if (Tegra::g_debug_context) {
+ Tegra::g_debug_context->OnEvent(Tegra::DebugContext::Event::MaxwellCommandLoaded, nullptr);
+ }
+
regs.reg_array[method] = value;
#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) {
}
#undef MAXWELL3D_REG_INDEX
+
+ if (Tegra::g_debug_context) {
+ Tegra::g_debug_context->OnEvent(Tegra::DebugContext::Event::MaxwellCommandProcessed,
+ nullptr);
+ }
}
void Maxwell3D::ProcessQueryGet() {