glsl: add packed for struct types
authorKarol Herbst <kherbst@redhat.com>
Sun, 4 Mar 2018 18:06:24 +0000 (19:06 +0100)
committerKarol Herbst <karolherbst@gmail.com>
Tue, 19 Mar 2019 04:08:07 +0000 (04:08 +0000)
commit659f333b3a4ff92ff985b168728ad37fe3d7e437
treeb8d1344245f3b7c9c84bca9f7866668ab48dba67
parentb98955e128ca3470d89c925f58567f2369f8072a
glsl: add packed for struct types

We need this for OpenCL kernels because we have to apply C rules for alignment
and padding inside structs and for this we also have to know if a struct is
packed or not.

v2: fix for kernel params

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
src/compiler/glsl_types.cpp
src/compiler/glsl_types.h
src/compiler/nir_types.cpp
src/compiler/nir_types.h
src/compiler/spirv/spirv_to_nir.c
src/compiler/spirv/vtn_private.h