summaryrefslogtreecommitdiff
path: root/src/video_core/vertex_shader.cpp
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2015-05-12 13:47:35 -0700
committerGravatar Yuri Kunde Schlesner2015-05-12 13:47:35 -0700
commit9d8e1f7a92f422ed646aaceb1f8361bc7e1383ce (patch)
tree416be8b56a87d07aec3e798d48544c2b4afe9809 /src/video_core/vertex_shader.cpp
parentMerge pull request #748 from Subv/tls_max (diff)
parentGPU: Add more fine grained profiling for vertex shader and rasterization (diff)
downloadyuzu-9d8e1f7a92f422ed646aaceb1f8361bc7e1383ce.tar.gz
yuzu-9d8e1f7a92f422ed646aaceb1f8361bc7e1383ce.tar.xz
yuzu-9d8e1f7a92f422ed646aaceb1f8361bc7e1383ce.zip
Merge pull request #760 from yuriks/gpu-profile
GPU: add more fine grained profiling for vertex shader and rasterization
Diffstat (limited to 'src/video_core/vertex_shader.cpp')
-rw-r--r--src/video_core/vertex_shader.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/vertex_shader.cpp b/src/video_core/vertex_shader.cpp
index 885b7de59..4734e546a 100644
--- a/src/video_core/vertex_shader.cpp
+++ b/src/video_core/vertex_shader.cpp
@@ -12,6 +12,7 @@
12 12
13#include <nihstro/shader_bytecode.h> 13#include <nihstro/shader_bytecode.h>
14 14
15#include "common/profiler.h"
15 16
16#include "pica.h" 17#include "pica.h"
17#include "vertex_shader.h" 18#include "vertex_shader.h"
@@ -574,7 +575,11 @@ static void ProcessShaderCode(VertexShaderState& state) {
574 } 575 }
575} 576}
576 577
578static Common::Profiling::TimingCategory shader_category("Vertex Shader");
579
577OutputVertex RunShader(const InputVertex& input, int num_attributes) { 580OutputVertex RunShader(const InputVertex& input, int num_attributes) {
581 Common::Profiling::ScopeTimer timer(shader_category);
582
578 VertexShaderState state; 583 VertexShaderState state;
579 584
580 const u32* main = &shader_memory[registers.vs_main_offset]; 585 const u32* main = &shader_memory[registers.vs_main_offset];