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 | 79b3a1a1e7437fad7ad0ab4fef670610dd1285a3 (patch) | |
| tree | f26502270c82f12876670083490c0f111813c641 /src/video_core/command_processor.cpp | |
| parent | 9cef48a53f5e26f4da1c929a800c2206d205f6b3 (diff) | |
| parent | 66efdff1a72c83b6214bc19d54c259bca29af0e1 (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 4083752309..ea58e9f548 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(); |
