aco: generalize subdword constant copy lowering
authorDaniel Schürmann <daniel@schuermann.dev>
Wed, 30 Dec 2020 15:06:04 +0000 (15:06 +0000)
committerMarge Bot <eric+marge@anholt.net>
Thu, 21 Jan 2021 11:05:36 +0000 (11:05 +0000)
commitc0cec3a29bb0f77f16645561e70d2a7eca12be6a
tree50038958de26fea5dae2f3eb6d493aafb928ab59
parent856fd4750daf23ac3f8f40278cf685f36661c19f
aco: generalize subdword constant copy lowering

This will allow to propagate and emit sub-register constants
on all hardware generations.

Also fixes GFX8 constant emission to not use SDWA.

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8260>
src/amd/compiler/aco_lower_to_hw_instr.cpp