i965/fs: Properly handle sign(-abs(x))
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 26 Jun 2018 22:11:21 +0000 (15:11 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 6 Jul 2018 23:20:04 +0000 (16:20 -0700)
commit88bd37c01060169b451ca2c3900830342d34a9a2
tree57e29bba15af724998c4b66e6fa7d2ee06fec31f
parentc05c8d65ba38132c6bc8ead70ff8f0b45dd4388b
i965/fs: Properly handle sign(-abs(x))

Fixes new piglit tests:

 - glsl-1.10/execution/fs-sign-neg-abs.shader_test
 - glsl-1.10/execution/fs-sign-sat-neg-abs.shader_test
 - glsl-1.10/execution/vs-sign-neg-abs.shader_test
 - glsl-1.10/execution/vs-sign-sat-neg-abs.shader_test

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/intel/compiler/brw_fs_nir.cpp