We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f93677b commit 876445fCopy full SHA for 876445f
src/shader_recompiler/frontend/control_flow_graph.cpp
@@ -80,6 +80,8 @@ void CFG::EmitLabels() {
80
if (inst.IsUnconditionalBranch()) {
81
const u32 target = inst.BranchTarget(pc);
82
AddLabel(target);
83
+ // Emit this label so that the block ends with s_branch instruction
84
+ AddLabel(pc + inst.length);
85
} else if (inst.IsConditionalBranch()) {
86
const u32 true_label = inst.BranchTarget(pc);
87
const u32 false_label = pc + inst.length;
0 commit comments