summaryrefslogtreecommitdiff
path: root/src/video_core
diff options
context:
space:
mode:
authorGravatar Subv2018-03-22 15:25:17 -0500
committerGravatar Subv2018-03-24 11:31:50 -0500
commit1ad97c75a0fe94000b0f54ff43ca5d29d8a9edc6 (patch)
treec2679c03eaf64066273cb9840b3eb42db8473e39 /src/video_core
parentFrontend: Ported the GPU breakpoints and surface viewer widgets from citra. (diff)
downloadyuzu-1ad97c75a0fe94000b0f54ff43ca5d29d8a9edc6.tar.gz
yuzu-1ad97c75a0fe94000b0f54ff43ca5d29d8a9edc6.tar.xz
yuzu-1ad97c75a0fe94000b0f54ff43ca5d29d8a9edc6.zip
GPU: Implement the MaxwellCommandLoaded/Processed debug breakpoints.
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 @@
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() {