diff options
| author | bunnei <bunneidev@gmail.com> | 2016-12-21 13:33:49 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-21 13:33:49 -0500 |
| commit | 29564d73bd078eac3e241ce67ffa78fb9aac3358 (patch) | |
| tree | f26502270c82f12876670083490c0f111813c641 /src/video_core/command_processor.cpp | |
| parent | c4491352b31b57af4573de81d03ff7057b942970 (diff) | |
| parent | ac9f9374770d7477eecab7be9110cc4a2fc357aa (diff) | |
Merge pull request #2319 from yuriks/profile-scopes
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 408375230..ea58e9f54 100644 --- a/src/video_core/command_processor.cpp +++ b/src/video_core/command_processor.cpp @@ -139,6 +139,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 shader_unit; @@ -168,6 +169,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(); |
