mesa: add fragdata_arrays list to gl_shader
authorTapani Pälli <tapani.palli@intel.com>
Tue, 27 Oct 2015 11:18:41 +0000 (13:18 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Thu, 29 Oct 2015 15:16:22 +0000 (17:16 +0200)
commit6ce0857e30a8484f1b190ccf37631d64e629a468
tree634fbdfd72f39cd4b17da4c3fcfe110c550e1478
parent85f1f0441326ef3f49a4edeac474599db471ef7f
mesa: add fragdata_arrays list to gl_shader

This is required to store information about fragdata arrays, currently
these variables get lost and cannot be retrieved later in sensible way
for program interface queries. List will be utilized by next patch.

Patch also modifies opt_dead_builtin_varyings pass to build list when
lowering fragdata arrays. This is identical approach as taken with
packed varyings pass.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Marta Lofstedt <marta.lofstedt@intel.com>
src/glsl/opt_dead_builtin_varyings.cpp
src/mesa/main/mtypes.h