We have a requirement to store the index into the mesa parameterlist for uniforms. Up until now we've overwritten var->data.location with this info. However this then stops us accessing UniformStorage, which is needed to do proper dereferencing.
Add a new variable to ir_variable to store this value in, and change the two uses to use it correctly.
5280176 glsl/ir: add param index to variable.
src/compiler/glsl/ir.h | 8 ++++++++
src/mesa/program/ir_to_mesa.cpp | 5 ++---
src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 2 +-
3 files changed, 11 insertions(+), 4 deletions(-)
Upstream: cgit.freedesktop.org