glsl/linker: Pass absolute location to add_shader_variable()
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Mon, 11 Apr 2016 20:03:12 +0000 (13:03 -0700)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Tue, 12 Apr 2016 21:38:26 +0000 (14:38 -0700)
commit09f01215933f8f7f8d3d4cda9ff94605164df9a9
treed07b03f54339d4d7ecb43d5d6783deb6f9048e88
parent8ab6aae4dcecba4e77f6777606e92cf2c2f1f83e
glsl/linker: Pass absolute location to add_shader_variable()

This lets us pass in the absolution location of a variable instead of
computing it in add_shader_variable() based on variable location and
bias. This is in preparation for recursing into struct variables.

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