This was added because we were getting spurrious returns coming out of
SPIR-V. Now that we're calling lower_returns, we don't need this.
bld.emit(BRW_OPCODE_CONTINUE);
break;
case nir_jump_return:
- /* This has to be the last block in the shader. We don't handle
- * early returns.
- */
- assert(nir_cf_node_next(&instr->instr.block->cf_node) == NULL &&
- instr->instr.block->cf_node.parent->type == nir_cf_node_function);
- break;
default:
unreachable("unknown jump");
}
break;
case nir_jump_return:
- /* This has to be the last block in the shader. We don't handle
- * early returns.
- */
- assert(nir_cf_node_next(&instr->instr.block->cf_node) == NULL &&
- instr->instr.block->cf_node.parent->type == nir_cf_node_function);
- break;
-
default:
unreachable("unknown jump");
}