From: Rob Clark Date: Tue, 25 Aug 2015 12:13:04 +0000 (-0400) Subject: freedreno/ir3: fix compile break after fxn->start_block removal X-Git-Tag: upstream/17.1.0~16592 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8b2d0bb844e4c9b6141f68431b6e6dc135eb3503;p=platform%2Fupstream%2Fmesa.git freedreno/ir3: fix compile break after fxn->start_block removal The commit: commit 8e0d4ef3410ea07d9621df3e083bc3e7c1ad2ab0 Author: Kenneth Graunke AuthorDate: Thu Aug 6 18:18:40 2015 -0700 nir: Delete the nir_function_impl::start_block field. removed the start_block field without fixing up drivers.. Signed-off-by: Rob Clark --- diff --git a/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c b/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c index 13c395f..071901a 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c +++ b/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c @@ -2312,7 +2312,7 @@ emit_instructions(struct ir3_compile *ctx) ctx->ir = ir3_create(ctx->compiler, ninputs, noutputs); /* Create inputs in first block: */ - ctx->block = get_block(ctx, fxn->start_block); + ctx->block = get_block(ctx, nir_start_block(fxn)); ctx->in_block = ctx->block; list_addtail(&ctx->block->node, &ctx->ir->block_list);