aco: fix creating v_madak if v_mad_f32 has two sgpr literals
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 10 Feb 2020 11:13:15 +0000 (12:13 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 11 Feb 2020 07:17:31 +0000 (07:17 +0000)
commitddd767387f336ed1578f171a2af4ca33c564d7f3
treef9422cbdcb013df813f8231e395416943269f056
parentcd08d9abd76ce0002572639c26c79e051a2a0549
aco: fix creating v_madak if v_mad_f32 has two sgpr literals

Do not ignore that src1 can be a sgpr.

Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2435
Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3759>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3759>
src/amd/compiler/aco_optimizer.cpp