mesa/glsl: move subroutine metadata to gl_program
authorTimothy Arceri <timothy.arceri@collabora.com>
Wed, 28 Dec 2016 21:56:43 +0000 (08:56 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Thu, 29 Dec 2016 23:57:16 +0000 (10:57 +1100)
commit41dd6c35396434be53581b59c4b477dd95e8b774
tree2138552dfb7787641b3318ad907ce3b4784baaef
parent0de6f6223ab917ec532e3fe3afd14f8f5cd3b87b
mesa/glsl: move subroutine metadata to gl_program

This will allow us to store gl_program rather than gl_shader_program
as the current program perstage which allows us to simplify code
that makes use of the CurrentProgram list.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/compiler/glsl/link_uniforms.cpp
src/compiler/glsl/linker.cpp
src/mesa/main/mtypes.h
src/mesa/main/shader_query.cpp
src/mesa/main/shaderapi.c