mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-23 07:12:46 +01:00
Merge pull request #790 from bunnei/shader-print-instr
gl_shader_decompiler: Print instruction value in shader comments.
This commit is contained in:
commit
47ac369180
1 changed files with 2 additions and 1 deletions
|
@ -810,7 +810,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…
Reference in a new issue