From 0737080ba611f6703a2cec5f4aa3389fc42338a4 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 6 May 2020 18:17:02 -0400 Subject: [PATCH] pan/lcra: Remove unused alignment parameters Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/bi_ra.c | 2 +- src/panfrost/midgard/midgard_ra.c | 2 +- src/panfrost/util/lcra.c | 1 - src/panfrost/util/lcra.h | 1 - 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/panfrost/bifrost/bi_ra.c b/src/panfrost/bifrost/bi_ra.c index 0124bf5ebc9..b305afdf574 100644 --- a/src/panfrost/bifrost/bi_ra.c +++ b/src/panfrost/bifrost/bi_ra.c @@ -67,7 +67,7 @@ bi_allocate_registers(bi_context *ctx, bool *success) unsigned node_count = bi_max_temp(ctx); struct lcra_state *l = - lcra_alloc_equations(node_count, 1, 8, 16, 1); + lcra_alloc_equations(node_count, 16, 1); l->class_start[BI_REG_CLASS_WORK] = 0; l->class_size[BI_REG_CLASS_WORK] = 64 * 4; /* R0 - R63, all 32-bit */ diff --git a/src/panfrost/midgard/midgard_ra.c b/src/panfrost/midgard/midgard_ra.c index d3fbabc77be..b2844ae9f38 100644 --- a/src/panfrost/midgard/midgard_ra.c +++ b/src/panfrost/midgard/midgard_ra.c @@ -449,7 +449,7 @@ allocate_registers(compiler_context *ctx, bool *spilled) if (!ctx->temp_count) return NULL; - struct lcra_state *l = lcra_alloc_equations(ctx->temp_count, 1, 8, 16, 5); + struct lcra_state *l = lcra_alloc_equations(ctx->temp_count, 16, 5); /* Starts of classes, in bytes */ l->class_start[REG_CLASS_WORK] = 16 * 0; diff --git a/src/panfrost/util/lcra.c b/src/panfrost/util/lcra.c index 28f9a735a44..0e30c1d1082 100644 --- a/src/panfrost/util/lcra.c +++ b/src/panfrost/util/lcra.c @@ -42,7 +42,6 @@ struct lcra_state * lcra_alloc_equations( unsigned node_count, - unsigned min_alignment, unsigned max_alignment, unsigned bound, unsigned class_count) { struct lcra_state *l = calloc(1, sizeof(*l)); diff --git a/src/panfrost/util/lcra.h b/src/panfrost/util/lcra.h index 68afc4a848e..61908953af9 100644 --- a/src/panfrost/util/lcra.h +++ b/src/panfrost/util/lcra.h @@ -82,7 +82,6 @@ struct lcra_state { struct lcra_state * lcra_alloc_equations( unsigned node_count, - unsigned min_alignment, unsigned max_alignment, unsigned bound, unsigned class_count); void -- 2.30.2