aco: fix unconditional demote_to_helper
authorDaniel Schürmann <daniel@schuermann.dev>
Fri, 10 Jan 2020 16:19:40 +0000 (17:19 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 13 Jan 2020 21:08:41 +0000 (21:08 +0000)
commit05c81875d7bf871f73f24903e04dad3d286ed02e
tree90a6dbc03f524d68dec64779c51b63d305118e05
parent2bb88b2fdc0d9271079e45a009ddbc6bfa6a0f37
aco: fix unconditional demote_to_helper

This patch fixes an out-of-bounds access on p_exit_early
and binds the exec register to the correct operand.

Fixes: 2ea9e59e8d976ec77800d2a20645087b96d1e241 ('aco: move s_andn2_b64 instructions out of the p_discard_if')
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3347>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3347>
src/amd/compiler/aco_insert_exec_mask.cpp
src/amd/compiler/aco_instruction_selection.cpp