pan/lcra: Remove unused alignment parameters
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 6 May 2020 22:17:02 +0000 (18:17 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 21 May 2020 17:49:14 +0000 (17:49 +0000)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5151>

src/panfrost/bifrost/bi_ra.c
src/panfrost/midgard/midgard_ra.c
src/panfrost/util/lcra.c
src/panfrost/util/lcra.h

index 0124bf5ebc96200a0714a8a3de8dd930de1867ed..b305afdf574d248b3bed1d52efe299a69561ee14 100644 (file)
@@ -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 */
index d3fbabc77bebc3f3ef915ad71555397392915586..b2844ae9f38bfb8f9b8882004b469f581d514d1f 100644 (file)
@@ -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;
index 28f9a735a4466e5773ea7f3c6d5d9d5828eb00b9..0e30c1d10829fe59efe69a6c919ae50e33ff6136 100644 (file)
@@ -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));
index 68afc4a848e5acec38bf9815fae5478555cac724..61908953af9e0a7470a84c6039f0aaa21f62fd4f 100644 (file)
@@ -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