summaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard/midgard_opt_invert.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/panfrost/midgard/midgard_opt_invert.c')
-rw-r--r--src/panfrost/midgard/midgard_opt_invert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/panfrost/midgard/midgard_opt_invert.c b/src/panfrost/midgard/midgard_opt_invert.c
index c3dc8142663..729169f9a4a 100644
--- a/src/panfrost/midgard/midgard_opt_invert.c
+++ b/src/panfrost/midgard/midgard_opt_invert.c
@@ -56,7 +56,7 @@ midgard_lower_invert(compiler_context *ctx, midgard_block *block)
ins->dest = temp;
ins->invert = false;
- mir_insert_instruction_before(mir_next_op(ins), not);
+ mir_insert_instruction_before(ctx, mir_next_op(ins), not);
}
}