freedreno/ir3: fix compile break after fxn->start_block removal
authorRob Clark <robclark@freedesktop.org>
Tue, 25 Aug 2015 12:13:04 +0000 (08:13 -0400)
committerRob Clark <robclark@freedesktop.org>
Tue, 25 Aug 2015 12:13:04 +0000 (08:13 -0400)
The commit:

  commit 8e0d4ef3410ea07d9621df3e083bc3e7c1ad2ab0
  Author:     Kenneth Graunke <kenneth@whitecape.org>
  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 <robclark@freedesktop.org>
src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c

index 13c395f3c7408447ce5a586cee65918d76c150d1..071901a3cc7e5aa43940c3dc204b95035efd00d0 100644 (file)
@@ -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);