glsl: Propagate packed info in get_explicit_type_for_size_align()
authorBoris Brezillon <boris.brezillon@collabora.com>
Fri, 26 Jun 2020 08:27:16 +0000 (10:27 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 3 Sep 2020 18:02:50 +0000 (18:02 +0000)
commitbe68de81abb3cf2d6944c4c5273c453a61437208
tree3696bf0c026c716b817e3de7d4ef806a2c337a62
parentd0c2958f882a9644d98d61c49f3b8a842ea2c48f
glsl: Propagate packed info in get_explicit_type_for_size_align()

Right now, when calling get_explicit_type_for_size_align() on a packed
struct, the packed attribute is lost and field offsets are wrong.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.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/glsl_types.cpp