From e8e78b9ffec39d54523f0e0faea5cf56f90f8e56 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 16 Nov 2018 11:16:01 -0800 Subject: [PATCH] midgard: Assert out movement hacks --- src/gallium/drivers/panfrost/midgard/midgard_compile.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/panfrost/midgard/midgard_compile.c b/src/gallium/drivers/panfrost/midgard/midgard_compile.c index 6d1fa594ee..202f8fa687 100644 --- a/src/gallium/drivers/panfrost/midgard/midgard_compile.c +++ b/src/gallium/drivers/panfrost/midgard/midgard_compile.c @@ -2464,6 +2464,9 @@ inline_alu_constants(compiler_context *ctx) * instruction. Copy the new move into that. * */ + /* TODO INSERT */ + assert(0); + memcpy(alu - 1, alu - 2, sizeof(ins)); memcpy(alu - 2, &ins, sizeof(ins)); } @@ -2699,6 +2702,8 @@ midgard_pair_load_store(compiler_context *ctx, midgard_block *block) /* We found one! Move it up to pair and remove it from the old location */ + /* TODO: MOVEMENT */ + assert(0); memcpy(ins + 1, c, sizeof(midgard_instruction)); c->unused = true; @@ -2975,7 +2980,7 @@ emit_block(compiler_context *ctx, nir_block *block) actualise_ssa_to_alias(ctx); midgard_eliminate_orphan_moves(ctx, &this_block); - midgard_pair_load_store(ctx, &this_block); + //midgard_pair_load_store(ctx, &this_block); #ifdef MIR_DEBUG print_mir_block(&this_block); -- GitLab