intel/fs: Add support for float16 to the fsign optimizations
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 18 Apr 2019 22:09:06 +0000 (15:09 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Sun, 21 Apr 2019 03:49:34 +0000 (20:49 -0700)
commita6ccc4c0c893cfd978068f1d75ad0e001182b381
tree357c24081e9a9b6f5cbd0b480d959bee9e0b9709
parent3e91c7d54494397fcdd74b54bee18c991283e831
intel/fs: Add support for float16 to the fsign optimizations

Commit ad98fbc2174 ("intel/fs: Refactor code generation for nir_op_fsign
to its own function") criss-crossed with c2b8fb9a810 ("anv/device:
expose VK_KHR_shader_float16_int8 in gen8+"), and I was not paying
enough attention when I rebased.  This adds back the float16 changes and
enables the optimization.

v2: Incorporate more changes from 19cd2f5debd and a8d8b1a1391 that I
missed in the previous version.

Fixes: ad98fbc2174 ("intel/fs: Refactor code generation for nir_op_fsign to its own function")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110474
Reviewed-by: Matt Turner <mattst88@gmail.com> [v1]
src/intel/compiler/brw_fs_nir.cpp