From def5913d19177aecd135e4a9f2f53d1fb8400943 Mon Sep 17 00:00:00 2001 From: Yuri Kunde Schlesner Date: Tue, 12 May 2015 15:50:17 -0300 Subject: GPU: Add more fine grained profiling for vertex shader and rasterization --- src/video_core/vertex_shader.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/video_core/vertex_shader.cpp') diff --git a/src/video_core/vertex_shader.cpp b/src/video_core/vertex_shader.cpp index 885b7de5..4734e546 100644 --- a/src/video_core/vertex_shader.cpp +++ b/src/video_core/vertex_shader.cpp @@ -12,6 +12,7 @@ #include +#include "common/profiler.h" #include "pica.h" #include "vertex_shader.h" @@ -574,7 +575,11 @@ static void ProcessShaderCode(VertexShaderState& state) { } } +static Common::Profiling::TimingCategory shader_category("Vertex Shader"); + OutputVertex RunShader(const InputVertex& input, int num_attributes) { + Common::Profiling::ScopeTimer timer(shader_category); + VertexShaderState state; const u32* main = &shader_memory[registers.vs_main_offset]; -- cgit v1.2.3