mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-21 17:47:53 -05:00
Shader_IR: Implement Fast BRX and allow multi-branches in the CFG.
This commit is contained in:
committed by
FernandoS27
parent
acd6441134
commit
8909f52166
@ -1704,6 +1704,13 @@ public:
|
||||
return expr.value ? decomp.v_true : decomp.v_false;
|
||||
}
|
||||
|
||||
Id operator()(const ExprGprEqual& expr) {
|
||||
const Id target = decomp.Constant(decomp.t_uint, expr.value);
|
||||
const Id gpr = decomp.BitcastTo<Type::Uint>(
|
||||
decomp.Emit(decomp.OpLoad(decomp.t_float, decomp.registers.at(expr.gpr))));
|
||||
return decomp.Emit(decomp.OpLogicalEqual(decomp.t_uint, gpr, target));
|
||||
}
|
||||
|
||||
Id Visit(const Expr& node) {
|
||||
return std::visit(*this, *node);
|
||||
}
|
||||
|
Reference in New Issue
Block a user