glsl: inspect interfaces in contains_foo()
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Thu, 27 Oct 2016 10:36:09 +0000 (12:36 +0200)
committerJuan A. Suarez Romero <jasuarez@igalia.com>
Thu, 27 Oct 2016 10:36:09 +0000 (12:36 +0200)
commit5d83820a1d4f6b2390520d2335848d351db13fd7
tree0724f73a94579504af35c655c576d9d5be384527
parent66fcfa6894ab61a8cb70955f4a4113729e4a8099
glsl: inspect interfaces in contains_foo()

When checking if a type contains doubles, integers, samples, etc. we
check if the current type is a record or array, but not if it is an
interface.

This commit also inspects if the type is an interface.

It fixes spec/arb_enhanced_layouts/compiler/transform-feedback-layout-qualifiers/xfb_offset/invalid-block-with-double.vert
piglit test.

Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
src/compiler/glsl_types.cpp
src/compiler/glsl_types.h