aco: rewrite apply_sgprs()
authorRhys Perry <pendingchaos02@gmail.com>
Fri, 22 Nov 2019 14:55:25 +0000 (14:55 +0000)
committerMarge Bot <eric+marge@anholt.net>
Tue, 14 Jan 2020 12:56:28 +0000 (12:56 +0000)
commitcef78797191a9200b8a616b096c41c11007772a9
tree49c769c341aee969d515f9de53d39b797f8f7c7f
parent0be7409069678016252fa0b29813c897adaf40fd
aco: rewrite apply_sgprs()

This will make it easier to apply two different sgprs (for GFX10) or apply
the same sgpr twice (just remove the break).

No pipeline-db changes.

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/2883>
src/amd/compiler/aco_optimizer.cpp