intel/fs: Add a scale factor to emit_fsign
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 26 Jun 2018 02:53:38 +0000 (19:53 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 18 Apr 2019 19:37:48 +0000 (12:37 -0700)
commit06d2c116415c0ab163a57ed7f2522342ed43e4d4
tree639ecb149fb87bca42ccecac352eb0c8470904a1
parentad98fbc21743cac60abd40a98f0796a8db4a250d
intel/fs: Add a scale factor to emit_fsign

Normally fsign generates -1, 0, or +1.  The new scale factor, S, causes
fsign to generate -S, 0, or +S.

v2: Rebase on v2 changes in previous commit.

v3: Rebase on 85c35885b38 ("nir: Rework nir_src_as_alu_instr to not take
a pointer").

Reviewed-by: Matt Turner <mattst88@gmail.com> [v2]
src/intel/compiler/brw_fs.h
src/intel/compiler/brw_fs_nir.cpp