diff options
author | Jason Ekstrand <[email protected]> | 2015-05-16 12:34:32 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-05-16 12:34:34 -0700 |
commit | a63952510d64c09720614b971e461d7f8ed17c7a (patch) | |
tree | 0219a3a20c2c222ccb25b501a2dcb141950664a5 | |
parent | 4e44dcc3122d9f5d79cedeff1b506cbfff36b968 (diff) |
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.
-rw-r--r-- | src/glsl/nir/spirv_to_nir.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/glsl/nir/spirv_to_nir.c b/src/glsl/nir/spirv_to_nir.c index 1a789ee4786..1fc1b8bc5dc 100644 --- a/src/glsl/nir/spirv_to_nir.c +++ b/src/glsl/nir/spirv_to_nir.c @@ -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; } |