aco: Introduce new helpers for calculating address offsets.
authorTimur Kristóf <timur.kristof@gmail.com>
Fri, 28 Feb 2020 14:50:54 +0000 (15:50 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 11 Mar 2020 08:34:10 +0000 (08:34 +0000)
commit4e692d65e1c1572a23a0ad6bbe3fa7fa543c9d20
treef9dfb021e7f31f2538abc8fc6acca97e8d399379
parent19d5dc9ceea8243596903fed60716a3318d0d653
aco: Introduce new helpers for calculating address offsets.

These helpers are going to make it unnecessary to reimplement the
(almost) same address offset calculation in mulitple places.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3964>
src/amd/compiler/aco_instruction_selection.cpp