compiler/types: Add helpers to get explicit types for standard layouts
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 9 Mar 2019 15:06:27 +0000 (09:06 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Fri, 15 Mar 2019 01:02:19 +0000 (01:02 +0000)
commit8b073832ffab2f36338b85e6e67fbefb1b4f4ba9
treebd0c420e9d49570374dd25ccb0b5018ec51982fe
parent5b2b1445660e260122773acea1c3b2032149d453
compiler/types: Add helpers to get explicit types for standard layouts

We also need to modify the current size/align helpers to not blow up
when they encounter an explicitly laid out type.  Previously we
considered using the size/align helpers mutually exclusive with standard
layouts but now we just assert that they match.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/compiler/glsl_types.cpp
src/compiler/glsl_types.h