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: c1275052 "nir: add type information to load uniform/input and store output intrinsics"

Edited by Caio Oliveira

Merge request reports