intel/fs: don't forget the stride at generate_shuffle
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Tue, 17 Sep 2019 23:46:33 +0000 (16:46 -0700)
committerPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 20 Sep 2019 17:57:05 +0000 (10:57 -0700)
commit10532c68318b9edda58d5a3fa824079799b62555
tree5b5011847b2a69e01bd1d2eb0ad7457add503434
parentdae33052dbfec843d5e997dbd93049d702977fa6
intel/fs: don't forget the stride at generate_shuffle

During generate_shuffle(), when we use byte sized registers we end up
with a destination stride of 2. We don't take the stride into
consideration when selecting the group offset for the last MOV
operation, which means we end up moving things to the wrong place,
leaving the last few channels untouched. Take the destination stride
in consideration so we don't miss the last channels.

v2: Assert this is not necessary for the IVB special case (Jason).

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
src/intel/compiler/brw_fs_generator.cpp