shader_recompiler: Use VM bit for conditional discard (#3306)

This commit is contained in:
TheTurtle
2025-07-23 20:58:09 +03:00
committed by GitHub
parent 8dc50ffc79
commit 19c3d05ac1
5 changed files with 1 additions and 13 deletions

View File

@@ -319,8 +319,6 @@ void CFG::LinkBlocks() {
// need to link with the next block.
if (!end_inst.IsTerminateInstruction()) {
auto* next_block = get_block(block.end);
++next_block->num_predecessors;
block.branch_true = next_block;
block.end_class = EndClass::Branch;
continue;
@@ -343,17 +341,11 @@ void CFG::LinkBlocks() {
if (end_inst.IsUnconditionalBranch()) {
auto* target_block = get_block(target_pc);
++target_block->num_predecessors;
block.branch_true = target_block;
block.end_class = EndClass::Branch;
} else if (end_inst.IsConditionalBranch()) {
auto* target_block = get_block(target_pc);
++target_block->num_predecessors;
auto* end_block = get_block(block.end);
++end_block->num_predecessors;
block.branch_true = target_block;
block.branch_false = end_block;
block.end_class = EndClass::Branch;