spirv: don't store 0 to cs.ptr_size for non kernel stages.
authorDave Airlie <airlied@redhat.com>
Tue, 19 Nov 2019 22:29:30 +0000 (08:29 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 21 Nov 2019 18:37:25 +0000 (04:37 +1000)
commitb62a925ad17abb5816764602166334493858cfe7
tree41fed690c92ab40390c82ca2ba745742dc839f8f
parent1496e1164f52d4e0224e763b19ca65cc301a52ad
spirv: don't store 0 to cs.ptr_size for non kernel stages.

cs is a union so storing this there is wrong.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/spirv/spirv_to_nir.c