Browse Source

gl_shader_decompiler: Print instruction value in shader comments.

nce_cpp
bunnei 8 years ago
parent
commit
04cf719b92
  1. 3
      src/video_core/renderer_opengl/gl_shader_decompiler.cpp

3
src/video_core/renderer_opengl/gl_shader_decompiler.cpp

@ -769,7 +769,8 @@ private:
return offset + 1; return offset + 1;
} }
shader.AddLine("// " + std::to_string(offset) + ": " + opcode->GetName());
shader.AddLine("// " + std::to_string(offset) + ": " + opcode->GetName() + " (" +
std::to_string(instr.value) + ')');
using Tegra::Shader::Pred; using Tegra::Shader::Pred;
ASSERT_MSG(instr.pred.full_pred != Pred::NeverExecute, ASSERT_MSG(instr.pred.full_pred != Pred::NeverExecute,

Loading…
Cancel
Save