aco: Remember when exec mask is const, and restore the const then.
authorTimur Kristóf <timur.kristof@gmail.com>
Fri, 7 May 2021 13:02:58 +0000 (15:02 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 18 May 2021 11:48:22 +0000 (11:48 +0000)
commitc850af936acacc0ae0c780a41ecf451edf82ce91
tree89c3343fc454ed75890b4d1c322c32e42804725c
parent04f90db9a067e1d40bd879fa9e4cfd4879409382
aco: Remember when exec mask is const, and restore the const then.

Previously, we would store even the constant -1 exec mask from the
beginning of every merged shader. With this change it is no longer
necessary because we can restore to constant exec mask directly.

Hence, this frees up a register pair (single register for Wave32)
in every merged shader.

No Fossil DB changes.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Tony Wasserka <tony.wasserka@gmx.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10691>
src/amd/compiler/aco_insert_exec_mask.cpp