nir/spirv: don't use bare types, remove assert in split vars for testing
authorDave Airlie <airlied@redhat.com>
Tue, 19 Mar 2019 22:19:45 +0000 (08:19 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 21 Mar 2019 00:25:40 +0000 (10:25 +1000)
commit3b3653c4cfbedf55a00cbddd0f341ebd1de81665
tree041ed84edae4b03f02612ec6892926f9c39ac237
parente7c840216380cbb0cb8a2eccf9bdf16aaf2a4554
nir/spirv: don't use bare types, remove assert in split vars for testing

For OpenCL we never want to strip the info from the types, and it makes
type comparisons easier in later stages. We might later need a nir pass to
strip this for GLSL, but so far the only regression is the assert and Jason
said removing that is fine.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/compiler/nir/nir_split_vars.c
src/compiler/spirv/vtn_variables.c