mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 14:40:10 +01:00
nir/spirv: Don't assert that the current block is empty
It's possible that someone will give us SPIR-V code in which someone needlessly branches to new blocks. We should handle that ok now.
This commit is contained in:
parent
4e44dcc312
commit
a63952510d
1 changed files with 0 additions and 2 deletions
|
|
@ -1186,8 +1186,6 @@ vtn_handle_body_instruction(struct vtn_builder *b, SpvOp opcode,
|
|||
nir_cf_node *tail_node = exec_node_data(nir_cf_node, list_tail, node);
|
||||
assert(tail_node->type == nir_cf_node_block);
|
||||
block->block = nir_cf_node_as_block(tail_node);
|
||||
|
||||
assert(exec_list_is_empty(&block->block->instr_list));
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue