aco: Extract LDS alignment calculation to a separate function.
authorTimur Kristóf <timur.kristof@gmail.com>
Tue, 18 Feb 2020 15:54:44 +0000 (16:54 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 11 Mar 2020 08:34:10 +0000 (08:34 +0000)
commitca342701c578575f842a679680c4be2d79ba1873
treeeba311629f85a100328d5068289fd7c65b4ca250
parentfe80f22470a194f2736e2277f41acf246f27f1c8
aco: Extract LDS alignment calculation to a separate function.

This function is going to be reused in multiple functions when
storing or loading something in the LDS.

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