aco: use a temporary SGPR for 8-bit/16-bit literal reduction identities
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 18 May 2020 14:00:10 +0000 (16:00 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 21 May 2020 15:06:48 +0000 (15:06 +0000)
commitc76595aec2c47463a3ae580c56bd19191f185acf
treeb6cf80a38c3ca8f010275f0a174e1c62dbe87533
parentb3c87c52ea4b8f311f0e87c76420e94b7149d8b0
aco: use a temporary SGPR for 8-bit/16-bit literal reduction identities

Otherwise, the compiler overwrites s0 which contains the exec mask.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4494>
src/amd/compiler/aco_reduce_assign.cpp