aco: refactor get_reg() to also handle affinities
authorDaniel Schürmann <daniel@schuermann.dev>
Fri, 10 Apr 2020 18:58:45 +0000 (19:58 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 22 Apr 2020 18:23:23 +0000 (18:23 +0000)
commitd9f7d1d5cb149cf86667876460fdff2e395c9bb1
treebc33b92e02313047a3e1f110a9ec385d8e4c00fc
parent7c8f4ebca93f0252419996618a49d507bbfda231
aco: refactor get_reg() to also handle affinities

This simplifies definition handling and
helps a few shaders

Totals from affected shaders:
Code Size: 659540 -> 659376 (-0.02 %) bytes

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4573>
src/amd/compiler/aco_register_allocation.cpp