Browse Source
Merge pull request #790 from bunnei/shader-print-instr
gl_shader_decompiler: Print instruction value in shader comments.
pull/15/merge
bunnei
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
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, |
|
|
|
|