glsl: Consolidate duplicate copies of constant folding.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 29 Apr 2016 21:40:26 +0000 (14:40 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 16 May 2016 06:59:20 +0000 (23:59 -0700)
commit329fe93210ce8f603f831ebd8431786d12cd1057
treeede5b4b2a66fe4cce14aa0e3204e7feea0533351
parent3bf27a9a002fd5c23937e4e34aff35c94824008f
glsl: Consolidate duplicate copies of constant folding.

We could probably clean this up more (maybe make it a method), but at
least there's only one copy of this code now, and that's a start.

No change in shader-db.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/compiler/glsl/ir_optimization.h
src/compiler/glsl/opt_constant_folding.cpp
src/compiler/glsl/opt_constant_propagation.cpp