aboutsummaryrefslogtreecommitdiff
path: root/src/shader_recompiler/frontend/maxwell/control_flow.h
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-04-04 20:00:34 -0300
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-22 21:51:26 -0400
commit9e6fe430bdc615ae5f7cc4fbc32d7e2baccd7ceb (patch)
tree3eb68f4872e39642f6f6c483765174ee77a793f1 /src/shader_recompiler/frontend/maxwell/control_flow.h
parentffca21487f9728015a2c036fa581ead7d3d074d9 (diff)
shader: Fix splits on blocks using indirect branches
Diffstat (limited to 'src/shader_recompiler/frontend/maxwell/control_flow.h')
-rw-r--r--src/shader_recompiler/frontend/maxwell/control_flow.h18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/control_flow.h b/src/shader_recompiler/frontend/maxwell/control_flow.h
index a8c90d27ad..466b141983 100644
--- a/src/shader_recompiler/frontend/maxwell/control_flow.h
+++ b/src/shader_recompiler/frontend/maxwell/control_flow.h
@@ -79,18 +79,14 @@ struct Block : boost::intrusive::set_base_hook<
Location begin;
Location end;
EndClass end_class;
- Stack stack;
IR::Condition cond;
- union {
- Block* branch_true;
- FunctionId function_call;
- IR::Reg branch_reg;
- };
- union {
- Block* branch_false;
- Block* return_block;
- s32 branch_offset;
- };
+ Stack stack;
+ Block* branch_true;
+ Block* branch_false;
+ FunctionId function_call;
+ Block* return_block;
+ IR::Reg branch_reg;
+ s32 branch_offset;
std::vector<IndirectBranch> indirect_branches;
};