nir/validate: Require array indices to match the deref bit size
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 14 Dec 2018 17:16:09 +0000 (11:16 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Tue, 8 Jan 2019 00:38:29 +0000 (00:38 +0000)
commitcd93b0a670f277349b421664583196a56e3a9f50
treed14aea3c265ed62008b5b87df7a730ca060ad7cf
parentabfe674c54bee6f8fdcae411b07db89c10b9d530
nir/validate: Require array indices to match the deref bit size

This doesn't currently change anything because array indices are
required to be 32 bits and all derefs are also 32 bits.  However, we
will one day have 64-bit derefs for OpenCL.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/compiler/nir/nir_validate.c