mesa/glsl: move LinkedTransformFeedback from gl_shader_program to gl_program
authorTimothy Arceri <timothy.arceri@collabora.com>
Thu, 3 Nov 2016 05:00:37 +0000 (16:00 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Thu, 29 Dec 2016 23:57:16 +0000 (10:57 +1100)
commit700bc94dcebf4257740483d2ba467b138234fa1a
treeda45fbee155479d7692bbe68c534a3c1c67385b3
parent31c04e4e229bec4e059779b4034cf597ceeadf97
mesa/glsl: move LinkedTransformFeedback from gl_shader_program to gl_program

This will help allow us to store gl_program in the CurrentProgram array rather
than gl_shader_program which will allow a bunch of simplifications.

Note that we make LinkedTransformFeedback a pointer so we don't waste
memory creating a struct for each stage. We also store a pointer to
the gl_program that will contain the pointer in gl_shader_program so
we can get easy access to the correct stage.

Reviewed-by: Eric Anholt <eric@anholt.net>
12 files changed:
src/compiler/glsl/link_varyings.cpp
src/compiler/glsl/linker.cpp
src/mesa/drivers/dri/i965/brw_ff_gs.c
src/mesa/drivers/dri/i965/gen6_gs_visitor.cpp
src/mesa/drivers/dri/i965/gen6_sol.c
src/mesa/drivers/dri/i965/gen7_sol_state.c
src/mesa/main/mtypes.h
src/mesa/main/shader_query.cpp
src/mesa/main/transformfeedback.c
src/mesa/state_tracker/st_cb_xformfb.c
src/mesa/state_tracker/st_glsl_to_tgsi.cpp
src/mesa/state_tracker/st_program.c