spirv: Propagate packed information to glsl_type
authorBoris Brezillon <boris.brezillon@collabora.com>
Tue, 23 Jun 2020 10:51:49 +0000 (12:51 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 3 Sep 2020 18:02:50 +0000 (18:02 +0000)
commitd0c2958f882a9644d98d61c49f3b8a842ea2c48f
tree7e98ab6a62712993796719124ebf7d1aa534999e
parent938d6ceb8300b194a7cbaf640e2c899cbecc6c5a
spirv: Propagate packed information to glsl_type

We need to parse the CPacked decoration early enough to apply it when
calculating field offsets and creating the struct type.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6472>
src/compiler/spirv/spirv_to_nir.c