From ac9f9374770d7477eecab7be9110cc4a2fc357aa Mon Sep 17 00:00:00 2001 From: Yuri Kunde Schlesner Date: Wed, 14 Dec 2016 22:52:09 -0800 Subject: VideoCore: Make profiling scope more representative --- src/video_core/command_processor.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/video_core/command_processor.cpp') 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 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(); -- cgit v1.2.3