aco: Abort when RA can't find a register.
authorTimur Kristóf <timur.kristof@gmail.com>
Mon, 10 Feb 2020 15:34:56 +0000 (16:34 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 24 Apr 2020 17:58:57 +0000 (17:58 +0000)
commitf321dc33c82635b5190845e59553ccb3ccfd332f
treeda9dd6ad6aa5a3fbfcfb34ff898518c817c8790a
parentf2e7aee2440943f13d221fddcb3aabbb5bc3c59a
aco: Abort when RA can't find a register.

Previously, it was just unreachable, which means it will generate
invalid shaders when it encounters a situation when it can't allocate
registers for eg. a large load.

This commit makes it slightly easier to notice such problems without
triggering a GPU hang.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4536>
src/amd/compiler/aco_register_allocation.cpp