aco/scheduler: Fix register demand computation for downwards moves
authorTony Wasserka <tony.wasserka@gmx.de>
Wed, 5 May 2021 10:53:13 +0000 (12:53 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 13 May 2021 15:27:57 +0000 (15:27 +0000)
commitc528af10761aa3ea902df269d71b54425c54e877
treef65272ff92232ea96cf321181261b5c5f6b61bb5
parentc7d679f0f7e356d3f3a496bc495991d15378ec4b
aco/scheduler: Fix register demand computation for downwards moves

Previously, changes in total_demand_clause were not always propagated to
total_demand. For instance, clause moves do not change the local register
demand at the end of a clause, yet they may still affect the total maximum.

Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Fixes: 8235bc64112 ("aco: try to group together VMEM loads of the same resource")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4533
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10644>
src/amd/compiler/aco_scheduler.cpp