vtn: create cast with type stride.
authorDave Airlie <airlied@redhat.com>
Mon, 27 May 2019 01:07:52 +0000 (11:07 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 30 May 2019 23:57:45 +0000 (09:57 +1000)
commit5441d562433a6315ca00c0c69160ff848e5ec34a
treefcc857e20cdbec0a3337486549d49d17a4df7f2f
parent372e83b95f9277fe1d09b1c65c70a38918843b6f
vtn: create cast with type stride.

When creating function parameters, we create pointers from ssa
values, this creates nir casts with stride 0, however we have
no where else to get this value from. Later passes to lower
explicit io need this stride value to do the right thing.

Reviewed-by: Karol Herbst <kherbst@redhat.com>
src/compiler/spirv/vtn_variables.c