mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-28 08:13:05 +00:00
shader: implement RDNA2 subvector loop mask and branch semantics
This commit is contained in:
1 parent
3902b42096
commit
c913951f7b
11 files changed
+167
-1
No files matched your search
@@ -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