aco: fix clamp optimization
authorRhys Perry <pendingchaos02@gmail.com>
Fri, 22 Nov 2019 20:58:59 +0000 (20:58 +0000)
committerMarge Bot <eric+marge@anholt.net>
Tue, 14 Jan 2020 12:56:28 +0000 (12:56 +0000)
commitedc888ccb1177401a0592b37d822fea98a9905ce
treeca9b10b6a3532d8c2931c54de522b4801d0723c8
parentf664cb01ecef34c6bc92d316b1bb4954ee362e84
aco: fix clamp optimization

We can't do the optimization if there are neg/abs in-between.

No pipeline-db changes.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2883>
src/amd/compiler/aco_optimizer.cpp