glsl/linker: Add add_shader_variable() helper
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Mon, 11 Apr 2016 19:57:41 +0000 (12:57 -0700)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Tue, 12 Apr 2016 21:38:26 +0000 (14:38 -0700)
commit8ab6aae4dcecba4e77f6777606e92cf2c2f1f83e
tree6cc43f1ce074177c82f5a145179d3a4eea6be550
parenteafeb8db66dae7619ff3cb039706b990d718cba7
glsl/linker: Add add_shader_variable() helper

This consolidates the combination of create_shader_variable() and
add_program_resource() into a new helper function. No functional
difference, but we'll expand add_shader_variable() in the next few
commits.

Signed-off-by: Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/glsl/linker.cpp