aco: always add sgprs to sgpr_ids when choosing literals
authorRhys Perry <pendingchaos02@gmail.com>
Thu, 23 Jan 2020 20:03:40 +0000 (20:03 +0000)
committerRhys Perry <pendingchaos02@gmail.com>
Mon, 27 Jan 2020 14:50:37 +0000 (14:50 +0000)
commit827681f9213189374a75b3838a03296bdd7e9716
tree6759b0941ad2961804b8b4490a1e57de51e67e8b
parent92970adb4ba4e64422f46893642f8b85f4e130f5
aco: always add sgprs to sgpr_ids when choosing literals

Even if it's a literal, we should add this to sgpr_ids.
No pipeline-db changes.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Fixes: 0be74090696 ('aco: rewrite literal combining')
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3541>
src/amd/compiler/aco_optimizer.cpp