diff options
| author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2016-12-14 22:52:09 -0800 |
|---|---|---|
| committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2016-12-14 22:52:09 -0800 |
| commit | ac9f9374770d7477eecab7be9110cc4a2fc357aa (patch) | |
| tree | 3cbfddcbde9b24b321412f7a294a42b7a89d82fa /src/video_core/command_processor.cpp | |
| parent | ec9130de8dfaf22bfc5dc8a4988b68532955b43a (diff) | |
VideoCore: Make profiling scope more representative
Diffstat (limited to 'src/video_core/command_processor.cpp')
| -rw-r--r-- | src/video_core/command_processor.cpp | 3 |
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(); |
