glsl/linker: Recurse on struct fields when adding shader variables
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Mon, 11 Apr 2016 21:28:18 +0000 (14:28 -0700)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Tue, 12 Apr 2016 21:38:26 +0000 (14:38 -0700)
commit1af0f0151c6ae7d8634a642ad7a13713f395ca4d
tree0e0a763047626ee3d89068be2846d1e3bd2e2c49
parent778fd46aa4df08f2dd5d5a9162e6dce062cc1cb6
glsl/linker: Recurse on struct fields when adding shader variables

ARB_program_interface_query requires that we add struct fields
recursively down to basic types.

Fixes 52 struct test cases in dEQP-GLES31.functional.program_interface_query.*

Signed-off-by: Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/glsl/linker.cpp