gl_shader_decompiler: Print instruction value in shader comments.

merge-requests/60/head
bunnei 2018-07-23 18:36:14 +07:00
parent 7138b99f21
commit c4322ce87e
1 changed files with 2 additions and 1 deletions

@ -769,7 +769,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,