nir/split_vars: fixup some more explicit_stride related issues.
authorDave Airlie <airlied@redhat.com>
Fri, 22 Mar 2019 04:21:55 +0000 (14:21 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 25 Mar 2019 03:57:16 +0000 (13:57 +1000)
commit9417793fb1453ab90f0dd53bf55904fc02b28215
tree3be245a48f4b86ee7190c49ac153d34705fa111e
parent9d0ae777dd68dad682dcc7768726996639ae2684
nir/split_vars: fixup some more explicit_stride related issues.

With vkpipelinedb Samuel discovered a regression since we stopped
stripping types at the spir-v level.

This adds a check to the var splitting for the case where it
asserts the type hasn't changed, when it has just created a bare
type, and it's different than the original type which has an explicit
stride.

This also removes a pointless assert that also triggers.

Fixes: 3b3653c4cf (nir/spirv: don't use bare types, remove assert in split vars for testing)
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_split_vars.c