i965/fs: Helpers for un/shuffle 16-bit pairs in 32-bit components
authorJose Maria Casanova Crespo <jmcasanova@igalia.com>
Mon, 20 Nov 2017 22:10:51 +0000 (23:10 +0100)
committerJose Maria Casanova Crespo <jmcasanova@igalia.com>
Wed, 6 Dec 2017 07:57:18 +0000 (08:57 +0100)
commit3db31c0b06acf2d1505070434764c89bc58a48af
treed0d37cdf9ebb679b16825c5f291c8bc84055471d
parentfa4a9d63bba57245bd9552990c92b48a9ed89b16
i965/fs: Helpers for un/shuffle 16-bit pairs in 32-bit components

This helpers are used to load/store 16-bit types from/to 32-bit
components.

The functions shuffle_32bit_load_result_to_16bit_data and
shuffle_16bit_data_for_32bit_write are implemented in a similar
way than the analogous functions for handling 64-bit types.

v1: Explain need of temporary in shuffle operations. (Jason Ekstrand)

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