diff options
author | bunnei <bunneidev@gmail.com> | 2018-07-24 04:48:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-24 04:48:47 +0200 |
commit | 47ac36918072f1f32de6cb76a3fd0fadd308c5ae (patch) | |
tree | 15a8503c5dd345c3c8b415d9d81a277b48186bea /src | |
parent | Merge pull request #788 from bunnei/shader-check-zero (diff) | |
parent | gl_shader_decompiler: Print instruction value in shader comments. (diff) | |
download | yuzu-47ac36918072f1f32de6cb76a3fd0fadd308c5ae.tar yuzu-47ac36918072f1f32de6cb76a3fd0fadd308c5ae.tar.gz yuzu-47ac36918072f1f32de6cb76a3fd0fadd308c5ae.tar.bz2 yuzu-47ac36918072f1f32de6cb76a3fd0fadd308c5ae.tar.lz yuzu-47ac36918072f1f32de6cb76a3fd0fadd308c5ae.tar.xz yuzu-47ac36918072f1f32de6cb76a3fd0fadd308c5ae.tar.zst yuzu-47ac36918072f1f32de6cb76a3fd0fadd308c5ae.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index f4ad42335..d4b1a6f33 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -810,7 +810,8 @@ private: 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; ASSERT_MSG(instr.pred.full_pred != Pred::NeverExecute, |