nir: Return nir_type_invalid for non-numeric base types
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Fri, 31 May 2019 23:15:02 +0000 (16:15 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Fri, 31 May 2019 23:27:03 +0000 (16:27 -0700)
commit75590604a96e266c9b466db3250994333ce4dcc8
tree8cff7e5e6a1aadc500b05e3a9081eab89ed0d813
parent27497c5c0221ed86337fc5a89080f123dcd8fd52
nir: Return nir_type_invalid for non-numeric base types

Now that the type gathering function look at instructions that might
have other types, return invalid type instead of crashing.  That
invalid will be properly ignored later.

Fixes: c12750527b7 "nir: add type information to load uniform/input and store output intrinsics"
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir.h