aco: check if multiplication/clamp is live when applying output modifier
authorRhys Perry <pendingchaos02@gmail.com>
Thu, 2 Jan 2020 17:05:30 +0000 (17:05 +0000)
committerRhys Perry <pendingchaos02@gmail.com>
Mon, 13 Jan 2020 13:26:43 +0000 (13:26 +0000)
commit809c8feb92d33c43ace3ef25584a2adca24b1be0
tree92796035c1a4f8afe3bb15958eb9dd4dc017cc4a
parentef8abfa7908974f571786e83b047b187af0e48c7
aco: check if multiplication/clamp is live when applying output modifier

It's possible that a multiplication/clamp is dead code and the single use
is from a different user.

Fixes portal rendering in Path of Exile when global illumination is
enabled.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-By: Timur Kristóf <timur.kristof@gmail.com>
Fixes: 93c8ebfa780 ('aco: Initial commit of independent AMD compiler')
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3081>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3081>
src/amd/compiler/aco_optimizer.cpp