summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-07-24 04:48:47 +0200
committerGitHub <noreply@github.com>2018-07-24 04:48:47 +0200
commit47ac36918072f1f32de6cb76a3fd0fadd308c5ae (patch)
tree15a8503c5dd345c3c8b415d9d81a277b48186bea /src/video_core
parentMerge pull request #788 from bunnei/shader-check-zero (diff)
parentgl_shader_decompiler: Print instruction value in shader comments. (diff)
downloadyuzu-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/video_core')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp3
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,