intel/compiler: Replicate 16 bit immediate value correctly
authorSagar Ghuge <sagar.ghuge@intel.com>
Tue, 26 Mar 2019 04:17:08 +0000 (21:17 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 7 May 2019 21:33:48 +0000 (14:33 -0700)
commit9db616e8a2e86354a3ba9851d84911f7cc623f9b
tree388a2974307c58a7730c26dd18a4d7043d1e638a
parent5211159b5b469409ac9c6d8b52535c5bb544c508
intel/compiler: Replicate 16 bit immediate value correctly

For the W or UW (signed or unsigned word) source types, the 16-bit value
must be replicated in both the low and high words of the 32-bit
immediate value.

v2: Fix replication in other places as well
V3: fix a few nits (Matt Turner)

Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/intel/compiler/brw_fs.cpp
src/intel/compiler/brw_vec4_generator.cpp