aco: check alignment of non-subdword registers in get_reg_specified()
authorRhys Perry <pendingchaos02@gmail.com>
Mon, 27 Apr 2020 16:54:49 +0000 (17:54 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 28 Apr 2020 23:16:55 +0000 (23:16 +0000)
commitfb59ed6bb9d70a410894afa998298f7e0c9160f5
tree0ce37ee45ae02a86145121f5d18257cc64ecdbf8
parent916cc3e231a34551bc9534943bff8e17e52931bf
aco: check alignment of non-subdword registers in get_reg_specified()

When splitting a v6b vector into v1 and v2b components, we should ensure
the v1 definition doesn't start at the upper half.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4772>
src/amd/compiler/aco_register_allocation.cpp