nir/spirv: Don't assert that the current block is empty
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 16 May 2015 19:34:32 +0000 (12:34 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 31 Aug 2015 23:58:20 +0000 (16:58 -0700)
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.

src/glsl/nir/spirv_to_nir.c

index a0404dfd0577cc6f73b9a702010d12f19d741c9a..3f2ef15c74f876cc883ee3f4909c6befb7d2b3cc 100644 (file)
@@ -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;
    }