aco: find scratch reg for sub-dword psuedo instructions which read sgprs
authorRhys Perry <pendingchaos02@gmail.com>
Thu, 17 Jun 2021 13:15:09 +0000 (14:15 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 17 Sep 2021 14:36:03 +0000 (14:36 +0000)
commit207b2cd4340f18fa48038ad7b19c0e02a27d0f29
tree2fd7967be3049049d628124acce252f1b470b81a
parentf2a48f4eae76db87c84618d190bf2e3827c3ff7f
aco: find scratch reg for sub-dword psuedo instructions which read sgprs

If there's a sgpr operand before a sub-dword operand, a scratch register
will not be found on GFX6/7.

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/12172>
src/amd/compiler/aco_register_allocation.cpp