1
0
mirror of https://git.suyu.dev/suyu/suyu synced 2025-08-31 00:16:32 -05:00

Merge pull request #790 from bunnei/shader-print-instr

gl_shader_decompiler: Print instruction value in shader comments.
This commit is contained in:
bunnei
2018-07-23 19:48:47 -07:00
committed by GitHub

View File

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