intel/compiler: fix isign for 16-bit integers
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 6 Mar 2018 07:57:26 +0000 (08:57 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Thu, 3 May 2018 09:40:25 +0000 (11:40 +0200)
commit5361a87ee73848d9f7fab0b715563b3d9de7f3df
tree42473a426b1a11f8781e19e616bf00c8e9b5deea
parentb5e266765a60aa0f05de646d5580ee8c71156ff1
intel/compiler: fix isign for 16-bit integers

We need to use 16-bit constants with 16-bit instructions,
otherwise we get the following validation error:

"Destination stride must be equal to the ratio of the sizes of
 the execution data type to the destination type"

Because the execution data type is 4B due to the 32-bit integer
constant.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/compiler/brw_fs_nir.cpp