OSDN Git Service

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)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 21 Oct 2015 13:23:20 +0000 (14:23 +0100)
commit0c6b2107499f6f5653808f4d1181ecb1871ff695
tree6d04e3d44802c1f178d7e624c00ed4a19cd704f7
parent8e9b698c24a2551c68ea5d7cbd67e78fc1f8d6a2
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>
(cherry picked from commit 5bc68f0f2b80b21997435742af74c49eb72891f7)
src/glsl/opt_dead_code.cpp