aco: Fix LS VGPR init bug on affected hardware.
authorTimur Kristóf <timur.kristof@gmail.com>
Mon, 9 Mar 2020 11:44:03 +0000 (12:44 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 11 Mar 2020 08:34:10 +0000 (08:34 +0000)
commita952bf394609134ff96f4bebb41bd022c621bfa6
tree866da5f2aba478523bbc762116879101e91de54f
parent57a7d58c5d7651ac10a41f08afd02f84064abbb3
aco: Fix LS VGPR init bug on affected hardware.

Vega 10 and Raven have a HW bug: when the HS thread count is zero,
the LS input arguments are loaded in the wrong registers. This commit
works around this by using the registers where the data actually is,
for the affected arguments.

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