glsl/mesa: add reference to gl_shader_program_data from gl_program
authorTimothy Arceri <timothy.arceri@collabora.com>
Tue, 20 Dec 2016 10:37:25 +0000 (21:37 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Fri, 30 Dec 2016 22:48:51 +0000 (09:48 +1100)
commit68245aa6f5f832ba3066fb65050ff79ad3e5531c
treeab1099d0ff35577fbae59c108b05d93cdbd5958f
parent9d99dc4bc1fda9906e8dc576d6116fbdb05f67ac
glsl/mesa: add reference to gl_shader_program_data from gl_program

We also add the stubs for the standalone compiler in this change.

By adding a reference here we can now refactor some code to use
gl_program where we were previously awkwardly using gl_shader_program.

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