glsl: Change built-in constant expression evaluation to run the IR.
authorOlivier Galibert <galibert@pobox.com>
Wed, 2 May 2012 21:11:42 +0000 (23:11 +0200)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 8 May 2012 19:55:52 +0000 (12:55 -0700)
commit363c14ae0cd2baa624d85e8c9db12cd1677190ea
tree9907b03107fb0870007e12268e9d3bb68a476729
parent2ff7b121cad2892698ff1aa7690dd361ea2739a7
glsl: Change built-in constant expression evaluation to run the IR.

This removes code duplication with
ir_expression::constant_expression_value and builtins/ir/*.

Signed-off-by: Olivier Galibert <galibert@pobox.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/ir.h
src/glsl/ir_constant_expression.cpp