mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-23 04:16:57 +02:00
shader: implement RDNA2 subvector loop mask and branch semantics
This commit is contained in:
@@ -61,6 +61,8 @@ BranchCondition ConditionForOpcode(Opcode opcode) {
|
||||
case Opcode::S_CBRANCH_VCCNZ: return BranchCondition::VccNonZero;
|
||||
case Opcode::S_CBRANCH_EXECZ: return BranchCondition::ExecZero;
|
||||
case Opcode::S_CBRANCH_EXECNZ: return BranchCondition::ExecNonZero;
|
||||
case Opcode::S_SUBVECTOR_LOOP_BEGIN:
|
||||
case Opcode::S_SUBVECTOR_LOOP_END: return BranchCondition::ScalarInstruction;
|
||||
default: return BranchCondition::Unknown;
|
||||
}
|
||||
}
|
||||
@@ -2224,6 +2226,7 @@ std::string BranchConditionToString(BranchCondition condition) {
|
||||
case BranchCondition::VccNonZero: return "vccnz";
|
||||
case BranchCondition::ExecZero: return "execz";
|
||||
case BranchCondition::ExecNonZero: return "execnz";
|
||||
case BranchCondition::ScalarInstruction: return "scalar_instruction";
|
||||
case BranchCondition::GotoVariable: return "goto_variable";
|
||||
default: return "unknown";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user