intel/compiler: Handle invalid compacted immediates
authorMatt Turner <mattst88@gmail.com>
Wed, 6 Nov 2019 18:05:48 +0000 (10:05 -0800)
committerMarge Bot <eric+marge@anholt.net>
Wed, 22 Jan 2020 00:19:21 +0000 (00:19 +0000)
commit40f0ade68ea870c4e97a30711e62e4ec69a888b6
tree5474f6f091b7bb53c2532411b710c1c7185e1490
parent205cb8a1396b446646d6edaee6a96533da8e562d
intel/compiler: Handle invalid compacted immediates

16-bit immediates need to be replicated through the 32-bit immediate
field, so we should never see one that isn't.

This does happen however in the fuzzer unit test, so returning false
allows the fuzzer to reject this case.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2635>
src/intel/compiler/brw_eu_compact.c