glsl: Only set ir_variable::constant_value for const-decorated variables
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 7 Oct 2015 19:52:58 +0000 (12:52 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 12 Oct 2015 17:15:13 +0000 (10:15 -0700)
commit3524d6df33b1e3716992f9a555ffb0f7b1ae2f4f
treeeb3243a2eb12298f8ce7b7bb4386758f98c865bb
parent5bc68f0f2b80b21997435742af74c49eb72891f7
glsl: Only set ir_variable::constant_value for const-decorated variables

Right now we're also setting for uniforms, and that doesn't seem to hurt
things.  The next patch will make general global variables in GLSL ES,
and those definitely should not have constant_value set!

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Cc: "10.6 11.0" <mesa-stable@lists.freedesktop.org>
src/glsl/ast_to_hir.cpp