aco/ra: only use VCC if program->needs_vcc == true
authorDaniel Schürmann <daniel@schuermann.dev>
Wed, 16 Mar 2022 09:59:52 +0000 (10:59 +0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 13 Apr 2022 21:52:43 +0000 (21:52 +0000)
commit44fb9ba84ac1048bd045b147546a2731962ea458
tree9e87a68046f867bc7b6aa555588d06a3b290d37f
parent08f3950d6b9bba4300f984c079463a3e5fbe2f53
aco/ra: only use VCC if program->needs_vcc == true

A future commit will make VCC register assignment independent
from register hints. Up to GFX9, VCC can alternatively be used
as regular SGPR, so prevent overlap.

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15408>
src/amd/compiler/aco_live_var_analysis.cpp
src/amd/compiler/aco_register_allocation.cpp