mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-21 17:38:02 -05:00
shader_ir: Implement BRX & BRA.CC
This commit is contained in:
committed by
FernandoS27
parent
c218ae4b02
commit
8a6fc529a9
@ -949,6 +949,14 @@ private:
|
||||
return {};
|
||||
}
|
||||
|
||||
Id BranchIndirect(Operation operation) {
|
||||
const Id op_a = VisitOperand<Type::Uint>(operation, 0);
|
||||
|
||||
Emit(OpStore(jmp_to, op_a));
|
||||
BranchingOp([&]() { Emit(OpBranch(continue_label)); });
|
||||
return {};
|
||||
}
|
||||
|
||||
Id PushFlowStack(Operation operation) {
|
||||
const auto target = std::get_if<ImmediateNode>(&*operation[0]);
|
||||
ASSERT(target);
|
||||
@ -1334,6 +1342,7 @@ private:
|
||||
&SPIRVDecompiler::ImageStore,
|
||||
|
||||
&SPIRVDecompiler::Branch,
|
||||
&SPIRVDecompiler::BranchIndirect,
|
||||
&SPIRVDecompiler::PushFlowStack,
|
||||
&SPIRVDecompiler::PopFlowStack,
|
||||
&SPIRVDecompiler::Exit,
|
||||
|
Reference in New Issue
Block a user