glsl: Propagate explicit binding information from AST to IR.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 18 Jul 2013 22:11:57 +0000 (15:11 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 18 Jul 2013 23:57:24 +0000 (16:57 -0700)
commitd4375fc0166a2ca50c4786ea93b5a5ccdbc8eaf7
tree50eec1df0f86fc773df64bdf0a382ef321c88fda
parent4da1504c0fd0cfccbff514ed03c4dc5deb24cf73
glsl: Propagate explicit binding information from AST to IR.

Rather than creating a new "binding" field in ir_variable, we reuse
constant_value since the linker code for handling uniform initializers
uses that.

Since UBOs and samplers can't otherwise have initializers/constant
values, there shouldn't be a conflict.

v2: Propagate the new binding variable around too.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/glsl/ast_to_hir.cpp