summaryrefslogtreecommitdiffstats
path: root/src/video_core/command_processor.cpp
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2016-12-15 07:52:09 +0100
committerYuri Kunde Schlesner <yuriks@yuriks.net>2016-12-15 07:52:09 +0100
commitac9f9374770d7477eecab7be9110cc4a2fc357aa (patch)
tree3cbfddcbde9b24b321412f7a294a42b7a89d82fa /src/video_core/command_processor.cpp
parentMerge pull request #2317 from yuriks/vertex-copy (diff)
downloadyuzu-ac9f9374770d7477eecab7be9110cc4a2fc357aa.tar
yuzu-ac9f9374770d7477eecab7be9110cc4a2fc357aa.tar.gz
yuzu-ac9f9374770d7477eecab7be9110cc4a2fc357aa.tar.bz2
yuzu-ac9f9374770d7477eecab7be9110cc4a2fc357aa.tar.lz
yuzu-ac9f9374770d7477eecab7be9110cc4a2fc357aa.tar.xz
yuzu-ac9f9374770d7477eecab7be9110cc4a2fc357aa.tar.zst
yuzu-ac9f9374770d7477eecab7be9110cc4a2fc357aa.zip
Diffstat (limited to 'src/video_core/command_processor.cpp')
-rw-r--r--src/video_core/command_processor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/command_processor.cpp b/src/video_core/command_processor.cpp
index 8a5d8533c..db4fe659c 100644
--- a/src/video_core/command_processor.cpp
+++ b/src/video_core/command_processor.cpp
@@ -136,6 +136,7 @@ static void WritePicaReg(u32 id, u32 value, u32 mask) {
immediate_input.attr[immediate_attribute_id++] = attribute;
if (immediate_attribute_id >= regs.vs.num_input_attributes + 1) {
+ MICROPROFILE_SCOPE(GPU_Drawing);
immediate_attribute_id = 0;
Shader::UnitState<false> shader_unit;
@@ -165,6 +166,8 @@ static void WritePicaReg(u32 id, u32 value, u32 mask) {
case PICA_REG_INDEX(gpu_mode):
if (regs.gpu_mode == Regs::GPUMode::Configuring) {
+ MICROPROFILE_SCOPE(GPU_Drawing);
+
// Draw immediate mode triangles when GPU Mode is set to GPUMode::Configuring
VideoCore::g_renderer->Rasterizer()->DrawTriangles();