util/ra: spiff out select_reg_callback
authorRob Clark <robdclark@chromium.org>
Fri, 28 Feb 2020 18:06:54 +0000 (10:06 -0800)
committerMarge Bot <eric+marge@anholt.net>
Tue, 10 Mar 2020 16:01:39 +0000 (16:01 +0000)
commit36aed70b591f7f4f642b26f46f7928be6d137e7b
treeb9ee18546df87013212490ebb42163950a4822d2
parentb3efa2a4da206112f6c9b5adb2df37c2efe646e6
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 <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4071>
src/broadcom/compiler/vir_register_allocate.c
src/gallium/drivers/vc4/vc4_register_allocate.c
src/util/register_allocate.c
src/util/register_allocate.h