pan/midgard: Link exit block

The exit block has been 'dangling' in the successors graph, so let's
ensure it's linked in.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
Alyssa Rosenzweig 2019-08-15 08:23:48 -07:00
parent 07c960cac0
commit b4b2e111f8
1 changed files with 9 additions and 1 deletions

View File

@ -2575,7 +2575,15 @@ midgard_compile_shader_nir(struct midgard_screen *screen, nir_shader *nir, midga
ctx->func = func;
emit_cf_list(ctx, &func->impl->body);
emit_block(ctx, func->impl->end_block);
/* Emit empty exit block with successor */
struct midgard_block *semi_end = ctx->current_block;
struct midgard_block *end =
emit_block(ctx, func->impl->end_block);
midgard_block_add_successor(semi_end, end);
break; /* TODO: Multi-function shaders */
}