aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>2019-07-16 16:16:39 (GMT)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>2019-07-22 15:20:33 (GMT)
commit1cabb8a706c86574a509f885065ac1e182bc04bc (patch)
treeebf6e7c5b6416b4e93313cf167f4e2cd7faf830a
parentb5116d3cb7b6d81532fa15f8d94942ce94051652 (diff)
downloadexternal_mesa3d-1cabb8a706c86574a509f885065ac1e182bc04bc.zip
external_mesa3d-1cabb8a706c86574a509f885065ac1e182bc04bc.tar.gz
external_mesa3d-1cabb8a706c86574a509f885065ac1e182bc04bc.tar.bz2
pan/midgard: Remove custom register selection callback
What we have is equivalent to the default callback; let's use that. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
-rw-r--r--src/panfrost/midgard/midgard_ra.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/panfrost/midgard/midgard_ra.c b/src/panfrost/midgard/midgard_ra.c
index cfe0913..c089a7b 100644
--- a/src/panfrost/midgard/midgard_ra.c
+++ b/src/panfrost/midgard/midgard_ra.c
@@ -138,23 +138,6 @@ find_or_allocate_temp(compiler_context *ctx, unsigned hash)
return temp;
}
-/* Callback for register allocation selection, trivial default for now */
-
-static unsigned int
-midgard_ra_select_callback(struct ra_graph *g, BITSET_WORD *regs, void *data)
-{
- /* Choose the first available register to minimise register pressure */
-
- for (int i = 0; i < (16 * WORK_STRIDE); ++i) {
- if (BITSET_TEST(regs, i)) {
- return i;
- }
- }
-
- assert(0);
- return 0;
-}
-
/* Helper to return the default phys_reg for a given register */
static struct phys_reg
@@ -389,8 +372,6 @@ allocate_registers(compiler_context *ctx)
}
}
- ra_set_select_reg_callback(g, midgard_ra_select_callback, NULL);
-
if (!ra_allocate(g)) {
unreachable("Error allocating registers\n");
}