OSDN Git Service

aco: fix unconditional demote_to_helper
authorDaniel Schürmann <daniel@schuermann.dev>
Fri, 10 Jan 2020 16:19:40 +0000 (17:19 +0100)
committerDaniel Schürmann <daniel@schuermann.dev>
Wed, 15 Jan 2020 08:01:19 +0000 (09:01 +0100)
commit852f5eac20bd18d4fc23d6f9474772e7c2758067
tree4b35cec7f58fa9f5e1aaba85946bb1d9339020c2
parentded6ead7794bb5bdd753aeec67b9e5dc92787659
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