intel/fs: fix SHADER_OPCODE_CLUSTER_BROADCAST for SIMD32
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Wed, 4 Sep 2019 22:07:20 +0000 (15:07 -0700)
committerJason Ekstrand <jason@jlekstrand.net>
Thu, 19 Sep 2019 02:48:27 +0000 (02:48 +0000)
commit8e614c7a29a8926b20f5c18ef447ff82cafb7f1c
treefbe679d582bb7049ed49e85d3e385ad5759cbf4c
parentc99df5287393cdb88e7ff2d9196be1eda67cd5ef
intel/fs: fix SHADER_OPCODE_CLUSTER_BROADCAST for SIMD32

The current code can create functions with a width of 32, which is not
supported by our hardware. Add some code to simplify how we express
what we want and prevent such cases.

For some unknown reason, all the tests I could run seem to work even
with these unsupported MOVs.

Fixes: b0858c1cc6 "intel/fs: Add a couple of simple helper opcodes"
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
src/intel/compiler/brw_fs_generator.cpp