aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/video_core/vertex_shader.cpp
diff options
context:
space:
mode:
authorGravatar bunnei <bunneidev@gmail.com>2015-07-26 11:45:51 -0400
committerGravatar bunnei <bunneidev@gmail.com>2015-07-26 11:45:51 -0400
commitcb76453ec40eec3710e6092f89d3c0d49a5b0ddf (patch)
treea161341d0efc0cbf3823d058eb9bfe39d77f7144 /src/video_core/vertex_shader.cpp
parent72237a930509d353f9029d7245855780071dd663 (diff)
parent13347997ba59aa578d61d5d1ac723ad00953bd96 (diff)
Merge pull request #992 from yuriks/hot-path-debug
VideoCore: #ifdef out some debugging routines
Diffstat (limited to 'src/video_core/vertex_shader.cpp')
-rw-r--r--src/video_core/vertex_shader.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/vertex_shader.cpp b/src/video_core/vertex_shader.cpp
index e73a1d36..960ae577 100644
--- a/src/video_core/vertex_shader.cpp
+++ b/src/video_core/vertex_shader.cpp
@@ -579,9 +579,11 @@ OutputVertex RunShader(const InputVertex& input, int num_attributes, const Regs:
state.conditional_code[1] = false;
ProcessShaderCode(state);
+#if PICA_DUMP_SHADERS
DebugUtils::DumpShader(setup.program_code.data(), state.debug.max_offset, setup.swizzle_data.data(),
state.debug.max_opdesc_id, config.main_offset,
g_state.regs.vs_output_attributes); // TODO: Don't hardcode VS here
+#endif
// Setup output data
OutputVertex ret;