glsl: add xfb_* qualifiers to glsl_struct_field
authorTimothy Arceri <timothy.arceri@collabora.com>
Wed, 24 Feb 2016 05:06:00 +0000 (16:06 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Thu, 31 Mar 2016 01:50:19 +0000 (12:50 +1100)
commit733f1b2a55aa396dd01ec516f93339d95ef32a42
tree3e225ccceb5b39b0b701f2cc340983151d9258b9
parent2dbcecb7a9f483e70875d60d9f18811088122861
glsl: add xfb_* qualifiers to glsl_struct_field

These will be used to hold qualifier values for interface and
struct members.

Support is added to the struct/interface constructors to copy these
fields upon creation.

We also update record_compare() to ensure we don't reuse a glsl_type
with the wrong xfb_* qualifier values.

Reviewed-by: Dave Airlie <airlied@redhat.com>
src/compiler/glsl/builtin_variables.cpp
src/compiler/glsl_types.cpp
src/compiler/glsl_types.h