spirv: Don't accept CPacked decoration on struct members
authorBoris Brezillon <boris.brezillon@collabora.com>
Tue, 23 Jun 2020 10:49:23 +0000 (12:49 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 3 Sep 2020 18:02:50 +0000 (18:02 +0000)
commit938d6ceb8300b194a7cbaf640e2c899cbecc6c5a
tree9763cecb2bc2748e9b8e4271472c6db5b4fe65a3
parentbcfeead5f31d29ae6ba3e78ce5186c0481d235b5
spirv: Don't accept CPacked decoration on struct members

CPacked decoration is only allowed on struct definitions, not struct
members.

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