summaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard/compiler.h
diff options
context:
space:
mode:
authorBoris Brezillon <[email protected]>2019-08-27 20:07:03 +0200
committerBoris Brezillon <[email protected]>2019-08-27 20:07:28 +0200
commit2734a4951e058509268918613f4fa9c9a5d330c1 (patch)
treecf46a2f83d9a774bdfff42509baca8e62e930c9f /src/panfrost/midgard/compiler.h
parent0142dcb990eee047af9e7f520bf7a27f6ef765b1 (diff)
Revert "panfrost: Free all block/instruction objects before leaving midgard_compile_shader_nir()"
This reverts commit 5882e0def97a47aff050f5a3f412b97a7f440e27. This commit causes a segfault. Signed-off-by: Boris Brezillon <[email protected]>
Diffstat (limited to 'src/panfrost/midgard/compiler.h')
-rw-r--r--src/panfrost/midgard/compiler.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/panfrost/midgard/compiler.h b/src/panfrost/midgard/compiler.h
index d131bb8c191..f9ba31b5959 100644
--- a/src/panfrost/midgard/compiler.h
+++ b/src/panfrost/midgard/compiler.h
@@ -333,9 +333,6 @@ mir_next_op(struct midgard_instruction *ins)
#define mir_foreach_block(ctx, v) \
list_for_each_entry(struct midgard_block, v, &ctx->blocks, link)
-#define mir_foreach_block_safe(ctx, v) \
- list_for_each_entry_safe(struct midgard_block, v, &ctx->blocks, link)
-
#define mir_foreach_block_from(ctx, from, v) \
list_for_each_entry_from(struct midgard_block, v, from, &ctx->blocks, link)
@@ -395,15 +392,6 @@ mir_next_op(struct midgard_instruction *ins)
#define mir_foreach_src(ins, v) \
for (unsigned v = 0; v < ARRAY_SIZE(ins->src); ++v)
-static inline void mir_remove_block(struct midgard_block *block)
-{
- mir_foreach_instr_in_block_safe(block, ins)
- mir_remove_instruction(ins);
-
- list_del(&block->link);
- free(block);
-}
-
static inline midgard_instruction *
mir_last_in_block(struct midgard_block *block)
{