summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines/maxwell_dma.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2021-07-14 19:04:45 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2021-07-15 02:02:08 +0200
commit1ae4b684fff380035b468086586159a231237ed7 (patch)
tree0f2d3bba4c07670b4d4b5cc56a506635f8cb08a7 /src/video_core/engines/maxwell_dma.cpp
parentGPUMemoryManager: Force inmediate invalidation when writting block. (diff)
downloadyuzu-1ae4b684fff380035b468086586159a231237ed7.tar
yuzu-1ae4b684fff380035b468086586159a231237ed7.tar.gz
yuzu-1ae4b684fff380035b468086586159a231237ed7.tar.bz2
yuzu-1ae4b684fff380035b468086586159a231237ed7.tar.lz
yuzu-1ae4b684fff380035b468086586159a231237ed7.tar.xz
yuzu-1ae4b684fff380035b468086586159a231237ed7.tar.zst
yuzu-1ae4b684fff380035b468086586159a231237ed7.zip
Diffstat (limited to 'src/video_core/engines/maxwell_dma.cpp')
-rw-r--r--src/video_core/engines/maxwell_dma.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/engines/maxwell_dma.cpp b/src/video_core/engines/maxwell_dma.cpp
index 0ae6692f9..c51776466 100644
--- a/src/video_core/engines/maxwell_dma.cpp
+++ b/src/video_core/engines/maxwell_dma.cpp
@@ -4,6 +4,7 @@
#include "common/assert.h"
#include "common/logging/log.h"
+#include "common/microprofile.h"
#include "common/settings.h"
#include "core/core.h"
#include "video_core/engines/maxwell_3d.h"
@@ -12,6 +13,9 @@
#include "video_core/renderer_base.h"
#include "video_core/textures/decoders.h"
+MICROPROFILE_DECLARE(GPU_DMAEngine);
+MICROPROFILE_DEFINE(GPU_DMAEngine, "GPU", "DMA Engine", MP_RGB(224, 224, 128));
+
namespace Tegra::Engines {
using namespace Texture;
@@ -43,6 +47,7 @@ void MaxwellDMA::CallMultiMethod(u32 method, const u32* base_start, u32 amount,
}
void MaxwellDMA::Launch() {
+ MICROPROFILE_SCOPE(GPU_DMAEngine);
LOG_TRACE(Render_OpenGL, "DMA copy 0x{:x} -> 0x{:x}", static_cast<GPUVAddr>(regs.offset_in),
static_cast<GPUVAddr>(regs.offset_out));