compiler: set alignment=1 by default for handling empty struct/interface in glsl_type...
authorYonggang Luo <luoyonggang@gmail.com>
Fri, 23 Jun 2023 12:31:00 +0000 (20:31 +0800)
committerMarge Bot <emma+marge@anholt.net>
Wed, 28 Jun 2023 21:16:05 +0000 (21:16 +0000)
commit75ac852253d33b050e7ff3c3cdd866cad9e4dfa6
tree129a3a0461f6aab3188d53ab9d3a1f0f0f5529b3
parent68b9ad0ba7e1dfe58b3a08ea3dcb7efe0a819753
compiler: set alignment=1 by default for handling empty struct/interface in glsl_types.cpp

When there is no elements in struct/interface, the alignment of it should be 1 instead of 0.

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23841>
src/compiler/glsl_types.cpp