nir: Expose the packed attribute attached to glsl_type objects
authorBoris Brezillon <boris.brezillon@collabora.com>
Mon, 29 Jun 2020 07:29:09 +0000 (09:29 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 3 Sep 2020 18:02:50 +0000 (18:02 +0000)
commit3be890a3a6844292177b5524bd94b6c88fb5fb6e
tree158fd42261f30267e080158f6b423e9a14cf039d
parent42f97f8ce3a9c119ccf960c5cad399f18114e924
nir: Expose the packed attribute attached to glsl_type objects

This should help code calculating field offsets to get it right when
the structure is marked packed.

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/nir_types.cpp
src/compiler/nir_types.h