mesa: use gl_shader_variable in program resource list
authorTapani Pälli <tapani.palli@intel.com>
Tue, 12 Jan 2016 06:52:12 +0000 (08:52 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Tue, 12 Jan 2016 07:07:10 +0000 (09:07 +0200)
commit8926dc87af72e55128402209993971ee00ca00c6
tree6efda80dee6be11b0fca9a197f87e1e557ba69ea
parent4985159ad6884d7d6ab509567349ae0f716d4080
mesa: use gl_shader_variable in program resource list

Patch changes linker to allocate gl_shader_variable instead of using
ir_variable. This makes it possible to get rid of ir_variables and ir
in memory after linking.

v2: check that we do not create duplicate entries with
    packed varyings

v3: document 'patch' bit (Ilia Mirkin)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/glsl/linker.cpp
src/mesa/main/mtypes.h
src/mesa/main/shader_query.cpp