glsl: Use constant_initializer instead of constant_value to determine whether to...
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 9 Oct 2015 00:32:41 +0000 (17:32 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 12 Oct 2015 17:15:13 +0000 (10:15 -0700)
commit5bc68f0f2b80b21997435742af74c49eb72891f7
tree73ba768bf91da1f156d893e7a502767117a3436a
parent313372cae8e10e4b9a3de093d65c0a0d8954bb0d
glsl: Use constant_initializer instead of constant_value to determine whether to keep an unused uniform

This even matches the comment "uniform initializers are precious, and
could get used by another stage."

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/opt_dead_code.cpp