summaryrefslogtreecommitdiffstats
path: root/src/broadcom
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2020-02-28 10:06:54 -0800
committerMarge Bot <[email protected]>2020-03-10 16:01:39 +0000
commit36aed70b591f7f4f642b26f46f7928be6d137e7b (patch)
treeb9ee18546df87013212490ebb42163950a4822d2 /src/broadcom
parentb3efa2a4da206112f6c9b5adb2df37c2efe646e6 (diff)
util/ra: spiff out select_reg_callback
Add a parameter so the callback can know which node it is selecting a register for. And remove the graph parameter, as it is unused by existing users, and somewhat unnecessary (ie. the callback data could be used instead). And add a comment so $future_me remembers how this works. Signed-off-by: Rob Clark <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4071>
Diffstat (limited to 'src/broadcom')
-rw-r--r--src/broadcom/compiler/vir_register_allocate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/broadcom/compiler/vir_register_allocate.c b/src/broadcom/compiler/vir_register_allocate.c
index 623cc22cefa..d88a8df1141 100644
--- a/src/broadcom/compiler/vir_register_allocate.c
+++ b/src/broadcom/compiler/vir_register_allocate.c
@@ -309,7 +309,7 @@ struct v3d_ra_select_callback_data {
};
static unsigned int
-v3d_ra_select_callback(struct ra_graph *g, BITSET_WORD *regs, void *data)
+v3d_ra_select_callback(unsigned int n, BITSET_WORD *regs, void *data)
{
struct v3d_ra_select_callback_data *v3d_ra = data;
int r5 = ACC_INDEX + 5;