aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/dma_pusher.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-11-27 18:42:21 -0500
committerbunnei <bunneidev@gmail.com>2018-11-27 18:42:21 -0500
commitc568f5cea79fe2e9d93fb545aee9bf6b3f6d70ae (patch)
tree4e79aa2ac84b14d5414175fafd23f1754f063889 /src/video_core/dma_pusher.cpp
parentabea6fa90c901d0b47487ed38d44511b18f0addf (diff)
gpu: Move command list profiling to DmaPusher::DispatchCalls.
Diffstat (limited to 'src/video_core/dma_pusher.cpp')
-rw-r--r--src/video_core/dma_pusher.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/dma_pusher.cpp b/src/video_core/dma_pusher.cpp
index 9f85a7aca..23ec97944 100644
--- a/src/video_core/dma_pusher.cpp
+++ b/src/video_core/dma_pusher.cpp
@@ -2,6 +2,7 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
+#include "common/microprofile.h"
#include "core/core.h"
#include "core/memory.h"
#include "video_core/dma_pusher.h"
@@ -14,7 +15,11 @@ DmaPusher::DmaPusher(GPU& gpu) : gpu(gpu) {}
DmaPusher::~DmaPusher() = default;
+MICROPROFILE_DEFINE(DispatchCalls, "GPU", "Execute command buffer", MP_RGB(128, 128, 192));
+
void DmaPusher::DispatchCalls() {
+ MICROPROFILE_SCOPE(DispatchCalls);
+
// On entering GPU code, assume all memory may be touched by the ARM core.
gpu.Maxwell3D().dirty_flags.OnMemoryWrite();